diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-20 01:55:03 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-20 01:55:03 -0600 |
commit | d25248b3ba90cf47aa4c104cc5b80528e3bd5764 (patch) | |
tree | eaa5f330b27fe1f567600ace0487105faab69995 | |
parent | 7abe891766135b36e538b26e7d2433d3bf2a40b2 (diff) |
Another issue with edge population
-rw-r--r-- | vaporize/library/Kettle.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vaporize/library/Kettle.java b/vaporize/library/Kettle.java index 38c941a..ffbf2dd 100644 --- a/vaporize/library/Kettle.java +++ b/vaporize/library/Kettle.java @@ -90,7 +90,7 @@ class Kettle { * keep track of this... */ protected int findLabelIndex(String str) { - int index = -1; + int index = -3; // is this guarenteed? String search = str.substring(1); String comp; @@ -105,12 +105,12 @@ class Kettle { } } - if (index == -1) { + if (index == -3) { MinimalLogger.severe(String.format("findLabelIndex could not compute label for %s!", str.trim())); } - // go to the section AFTER the label - return index+1; + // go to the section AFTER the label, and account for starting at zero + return index+2; } } |