From 1fd2d1b4341a4919e7bdca4e37996e86a12f0961 Mon Sep 17 00:00:00 2001 From: Ben Hamilton Date: Fri, 31 Mar 2017 09:27:23 -0700 Subject: [PATCH] Python 3 codegen probably didn't mean to limit ATN segment size to 2 XOR 31 --- tool/src/org/antlr/v4/codegen/target/Python3Target.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/src/org/antlr/v4/codegen/target/Python3Target.java b/tool/src/org/antlr/v4/codegen/target/Python3Target.java index 6cd4977ea..7c2d340d9 100644 --- a/tool/src/org/antlr/v4/codegen/target/Python3Target.java +++ b/tool/src/org/antlr/v4/codegen/target/Python3Target.java @@ -56,7 +56,7 @@ public class Python3Target extends Target { @Override public int getSerializedATNSegmentLimit() { // set to something stupid to avoid segmentation - return 2 ^ 31; + return Integer.MAX_VALUE; } @Override