Skip to content

Commit c55f833

Browse files
committed
Always the dumb stuff
1 parent 98e9310 commit c55f833

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/jruby/RubyKernel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public static IRubyObject new_float(ThreadContext context, IRubyObject object, b
568568
static boolean isHexValue(ByteList bytes) {
569569
int length = bytes.getRealSize();
570570
int index = length >= 1 && bytes.get(0) == '-' ? 1 : 0;
571-
return length >= index + 2 && bytes.get(index) == '0' && bytes.get(index + 1) == 'x' || bytes.get(index + 1) == 'X';
571+
return length >= index + 2 && bytes.get(index) == '0' && (bytes.get(index + 1) == 'x' || bytes.get(index + 1) == 'X');
572572
}
573573

574574
static RubyFloat new_float(final Ruby runtime, RubyInteger num) {

0 commit comments

Comments
 (0)