diff options
| author | Paul Eggert | 2019-11-14 18:51:17 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-11-14 18:52:48 -0800 |
| commit | 8b848def9bc3c4ad786670d0447a6fb396f2ff30 (patch) | |
| tree | b7343d7e0c5ae80efc702e23c0b2037c8693d96a /src/coding.c | |
| parent | 6ea1e35f6f8b89b979e660bf04bda1757c0cdff0 (diff) | |
| download | emacs-8b848def9bc3c4ad786670d0447a6fb396f2ff30.tar.gz emacs-8b848def9bc3c4ad786670d0447a6fb396f2ff30.zip | |
Handle weird cases like (ceil 0 0.0)
* src/floatfns.c (double_integer_scale): Distinguish Inf from NaN.
(rounding_driver): Handle (ceil 0 0.0) and (ceil 0 1.0e+INF).
* test/src/floatfns-tests.el (special-round): Add tests for
weird cases like this.
Avoid crash with (floor 0 0.0)
* src/floatfns.c (rounding_driver): Signal an arithmetic
error if divisor is 0.0 or -0.0, instead of crashing.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions