Skip to content

Commit 970667a

Browse files
author
binnz
committed
Fix checked_shlw
1 parent fc84a51 commit 970667a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

aptos/sources/math_u256.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module integer_mate::math_u256 {
1717

1818
public fun checked_shlw(n: u256): (u256, bool) {
1919
let mask = 1 << 192;
20-
if (n > mask) {
20+
if (n >= mask) {
2121
(0, true)
2222
} else {
2323
((n << 64), false)

sui/Move.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[move]
44
version = 3
5-
manifest_digest = "5D688585FAC7C7C06ED7EDDEC83EA50A8856F293282E30005235EC9283B46CDB"
5+
manifest_digest = "F5B1F40148861AC641A20991CDD62C841987521E476990A7D797BA229C3F7364"
66
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
77
dependencies = [
88
{ id = "Sui", name = "Sui" },

sui/sources/math_u256.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module integer_mate::math_u256 {
1717

1818
public fun checked_shlw(n: u256): (u256, bool) {
1919
let mask = 1 << 192;
20-
if (n > mask) {
20+
if (n >= mask) {
2121
(0, true)
2222
} else {
2323
((n << 64), false)

0 commit comments

Comments
 (0)