Use != 0
instead of > 0
for unsigned integer types
#71
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pmerkleplant
Vulnerability details
When dealing with unsigned integer types, comparisons with
!= 0
are cheaperthen with
>0
.Therefore, the following statements can be refactored to save gas:
The text was updated successfully, but these errors were encountered: