From c35b59d3b8d5f23b1b60f5f797d91ea2795bee91 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sat, 1 Mar 2014 15:49:29 -0600 Subject: [PATCH] Increment current while adding a collection to IntegerList (fixes #474) --- runtime/Java/src/org/antlr/v4/runtime/misc/IntegerList.java | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/Java/src/org/antlr/v4/runtime/misc/IntegerList.java b/runtime/Java/src/org/antlr/v4/runtime/misc/IntegerList.java index 3269fc78e..c83860348 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/misc/IntegerList.java +++ b/runtime/Java/src/org/antlr/v4/runtime/misc/IntegerList.java @@ -103,6 +103,7 @@ public class IntegerList { int current = 0; for (int x : list) { _data[_size + current] = x; + current++; } _size += list.size();