slither
slither copied to clipboard
Improve constant parsing
This PR improves and unifies constant parsing through the following:
- Using
Fractioninstead ofDecimal, to eliminate precision loss and rounding on constants - Unified parsing of integers through
convert_string_to_int/fraction - Correction of unary minus parsing (the negation was not being applied)
- Tests for rational and scientific notation constants
This pull request introduces 1 alert when merging 2879514f23ad058abb0bd3c42259507eb06ba4b9 into 719e4e98d8980451e7cbd3e1cc94cb078ca902a8 - view on LGTM.com
new alerts:
- 1 for Unused import
This pull request introduces 1 alert when merging 3112f157cad5cd5964468766f430105be1714b8e into 719e4e98d8980451e7cbd3e1cc94cb078ca902a8 - view on LGTM.com
new alerts:
- 1 for Unused import
This is great, thanks @elopez