Skip to content

Commit

Permalink
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -612,6 +612,8 @@ public boolean equal(long a, DynamicObject b) {
}

@Specialization(guards = {
"!isByte(b)",
"!isShort(b)",
"!isInteger(b)",
"!isLong(b)",
"!isRubyBignum(b)" })
Original file line number Diff line number Diff line change
@@ -23,6 +23,14 @@ public static boolean isBoolean(Object value) {
return value instanceof Boolean;
}

public static boolean isByte(Object value) {
return value instanceof Byte;
}

public static boolean isShort(Object value) {
return value instanceof Short;
}

public static boolean isInteger(Object value) {
return value instanceof Integer;
}

0 comments on commit 273c692

Please sign in to comment.