Skip to content

Commit

Permalink
Auto-boxing improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrail committed Nov 27, 2024
1 parent 4f985fa commit 9be37bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public GuardedInvocation getGuardedInvocation(LinkRequest req, LinkerServices sv
private static Object getLength(Object o, Context cx, Scriptable scope) {
long length = ((NativeArray) o).getLength();
if (length < Integer.MAX_VALUE) {
return Integer.valueOf((int) length);
return (int) length;
}
return Double.valueOf((double) length);
return (double) length;
}
}

0 comments on commit 9be37bc

Please sign in to comment.