Skip to content

Commit 06660f7

Browse files
Merge pull request #7 from CetusProtocol/fix-checked_shlw
Fix checked_shlw
2 parents fc84a51 + d0fd369 commit 06660f7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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 = "24814DF551096BA472A2B43A3C4234C6E195BB35AEBCE313151D3C3C5B38EA8B"
66
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
77
dependencies = [
88
{ id = "Sui", name = "Sui" },

sui/Move.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# -------------------------------
33
[package]
44
name = "IntegerMate"
5-
version = "1.1.1"
6-
published-at = "0xdd45037f3f99cb2e43b94599777c50db5f8c44b6657ed1d2f9b227115d29edef"
5+
version = "1.1.2"
6+
published-at = "0x991a8ab5ccc7af04c5d1327aaff520a074e1444bf7fcde2fcfcb0ad58b9c2af4"
77

88
[dependencies]
99
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.48.2" }

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)