mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Simplify big.Int comparisons to zero
This commit is contained in:
1 parent
8a986019f8
commit
0b06dbcf02
3 files changed
+20
-20
No files matched your search
@@ -119,7 +119,7 @@ check1:
|
||||
if lhs := x.LHS().Expr(); !lhs.Eq(d) {
|
||||
continue
|
||||
}
|
||||
if rcv := x.RHS().Expr().ConstValue(); rcv == nil || rcv.Cmp(zero) != 0 {
|
||||
if rcv := x.RHS().Expr().ConstValue(); rcv == nil || rcv.Sign() != 0 {
|
||||
continue
|
||||
}
|
||||
break check1
|
||||
|
||||
Reference in new issue
Block a user