solidity-stringutils icon indicating copy to clipboard operation
solidity-stringutils copied to clipboard

Avoid division by zero which triggers exception.

Open ritzdorf opened this issue 7 years ago • 0 comments

Compare values that are supposed to be zero directly to zero. Otherwise there is a division by zero in sign().

ritzdorf avatar Jun 27 '17 13:06 ritzdorf