Skip to content

Commit 82930f5

Browse files
committed
[js] Fixup our asIntN, asUintN versions
1 parent b94c174 commit 82930f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/js/nqp-runtime/as-int-n.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const JSBI = require('jsbi');
22

33
module.exports.asIntN = function(bits, bigint) {
4-
return JSBI.BigInt(BigInt.asIntN(bits, BigInt(bigint.toString())));
4+
return JSBI.BigInt(BigInt.asIntN(bits, BigInt(bigint.toString())).toString());
55
};
66

77
module.exports.asUintN = function(bits, bigint) {
8-
return JSBI.BigInt(BigInt.asUIntN(bits, BigInt(bigint.toString())));
8+
return JSBI.BigInt(BigInt.asUintN(bits, BigInt(bigint.toString())).toString());
99
};
1010

0 commit comments

Comments
 (0)