Skip to content

Commit

Permalink
Reset underscore count to zero with intervening digit
Browse files Browse the repository at this point in the history
We're only supposed to bail out on 2 or more consecutive
underscores. Probably ported wrong since us += 0 makes 0 sense.

Fixes jruby#7749
  • Loading branch information
headius committed Sep 10, 2023
1 parent 052d6c6 commit 79a7535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/ConvertBytes.java
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ private void squeezeZeroes() {
break;
}
} else {
us += 0;
us = 0;
}
beg++;
}
Expand Down

0 comments on commit 79a7535

Please sign in to comment.