Skip to content

Commit 20c419e

Browse files
committed
correct unshift i64 opt
1 parent f773b8b commit 20c419e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ const fn unshift_i64_opt(value: i64) -> Option<i64> {
435435
if value == 0 {
436436
return None
437437
}
438-
let subtract = value < 0;
438+
let subtract = value > 0;
439439
Some(value - subtract as i64)
440440
}
441441

0 commit comments

Comments
 (0)