Arachnid / solidity-stringutils

Basic string utilities for Solidity
Apache License 2.0
1.13k stars 372 forks source link

Avoid division by zero which triggers exception. #12

Open ritzdorf opened 7 years ago

ritzdorf commented 7 years ago

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