Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aptos/sources/math_u256.move
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module integer_mate::math_u256 {

public fun checked_shlw(n: u256): (u256, bool) {
let mask = 1 << 192;
if (n > mask) {
if (n >= mask) {
(0, true)
} else {
((n << 64), false)
Expand Down
2 changes: 1 addition & 1 deletion sui/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 3
manifest_digest = "5D688585FAC7C7C06ED7EDDEC83EA50A8856F293282E30005235EC9283B46CDB"
manifest_digest = "24814DF551096BA472A2B43A3C4234C6E195BB35AEBCE313151D3C3C5B38EA8B"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ id = "Sui", name = "Sui" },
Expand Down
4 changes: 2 additions & 2 deletions sui/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# -------------------------------
[package]
name = "IntegerMate"
version = "1.1.1"
published-at = "0xdd45037f3f99cb2e43b94599777c50db5f8c44b6657ed1d2f9b227115d29edef"
version = "1.1.2"
published-at = "0x991a8ab5ccc7af04c5d1327aaff520a074e1444bf7fcde2fcfcb0ad58b9c2af4"

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "mainnet-v1.48.2" }
Expand Down
2 changes: 1 addition & 1 deletion sui/sources/math_u256.move
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module integer_mate::math_u256 {

public fun checked_shlw(n: u256): (u256, bool) {
let mask = 1 << 192;
if (n > mask) {
if (n >= mask) {
(0, true)
} else {
((n << 64), false)
Expand Down