Skip to content

Commit fe75ac0

Browse files
aso20455ernestognw
andauthored
Adjust MAX_UINT32 and MAX_UINT48 constants in Time.test.js (#6095)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
1 parent 598b88b commit fe75ac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utils/types/Time.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const { product } = require('../../helpers/iterate');
66
const { max } = require('../../helpers/math');
77
const time = require('../../helpers/time');
88

9-
const MAX_UINT32 = 1n << (32n - 1n);
10-
const MAX_UINT48 = 1n << (48n - 1n);
9+
const MAX_UINT32 = (1n << 32n) - 1n;
10+
const MAX_UINT48 = (1n << 48n) - 1n;
1111
const SOME_VALUES = [0n, 1n, 2n, 15n, 16n, 17n, 42n];
1212

1313
const asUint = (value, size) => {

0 commit comments

Comments
 (0)