diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Dart/Dart.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Dart/Dart.stg index 7e20cd1f1d..6c734d8955 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Dart/Dart.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Dart/Dart.stg @@ -519,7 +519,7 @@ testShiftInRange(shiftAmount) ::= << >> bitsetBitfieldComparison(s, bits) ::= <% -(})> && ((1 \<\< ) & ) != 0) +(})> && ((BigInt.one \<\< ) & BigInt.parse('')) != BigInt.zero) %> isZero ::= [