From d25248b3ba90cf47aa4c104cc5b80528e3bd5764 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sat, 20 Apr 2024 01:55:03 -0600 Subject: Another issue with edge population --- vaporize/library/Kettle.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vaporize/library/Kettle.java') 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; } } -- cgit v1.2.3