For uint
replace > 0
with != 0
#8
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
0x0x0x
Vulnerability details
Proof of Concept
For unsigned integers, it is cheaper to check
!= 0
than> 0
. Both provide the same logic.Occurences
The text was updated successfully, but these errors were encountered: