Skip to content

Commit

Permalink
Update jsbits/jsstring.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Young <[email protected]>
  • Loading branch information
JoshMeredith and doyougnu authored Feb 12, 2024
1 parent dc9599b commit ca5d478
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsbits/jsstring.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ function h$jsstringHexBigNat(positive,x) {
function h$jsstringHexI64(hi,lo) {
TRACE_JSSTRING("hexI64: " + hi + " " + lo);
var sign = (hi >>> 31) ? '-' : '';
// unsigned right bitshift by zero to convert to UInt32
var lo0 = sign ? ~(lo - 1) >>> 0 : lo;
if(hi === 0 || hi === -1) return sign + lo0.toString(16);
var hi0 = sign ? ~hi >>> 0 : hi;
Expand Down

0 comments on commit ca5d478

Please sign in to comment.