Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mochinum:digits/1: fix handling of -0.0 for OTP-26.1/27.0
Matching of floating-point zeroes will change in OTP-27 so that -0.0 will no longer match a non-negative 0.0. OTP-26.1 warns about such constructs, which in mochiweb results in: src/mochinum.erl:47:8: Warning: matching on the float 0.0 will no longer also match -0.0 in OTP 27. If you specifically intend to match 0.0 alone, write +0.0 instead. Fixed by switching from a match to a numerical comparison.
- Loading branch information