Skip to content

Commit 4cfe145

Browse files
Accept reviewer suggestion
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
1 parent 82b4990 commit 4cfe145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/src/math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ mod math {
171171
Err(float_err) => {
172172
if let Ok(x) = x.try_int(vm) {
173173
let x = x.as_bigint();
174-
if x > &BigInt::zero() {
174+
if x.is_positive() {
175175
Ok(int_log2(x))
176176
} else {
177177
Err(vm.new_value_error("math domain error".to_owned()))

0 commit comments

Comments
 (0)