Skip to content

Commit

Permalink
Not sure how this ever become negative...
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-bell committed Aug 8, 2024
1 parent 3b5d66c commit 656fee0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public String readString(List<String> dictionary) throws IOException {
TypedGeneratedValue ret = readValue(TypedGeneratedValue.Type.String);
bytesRead+=4; //Historically JQF has counted strings as 4 bytes (an int into a dictionary)
positionInInput++;
return dictionary.get(((TypedGeneratedValue.StringValue) ret).keyNotBoundedBySize % dictionary.size());
return dictionary.get(Math.abs(((TypedGeneratedValue.StringValue) ret).keyNotBoundedBySize % dictionary.size()));
}

public char readChar() throws IOException {
Expand Down

0 comments on commit 656fee0

Please sign in to comment.