diff options
| author | Paul Eggert | 2017-03-04 23:14:52 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-03-04 23:18:39 -0800 |
| commit | 0d55c44a9a00da3b8542e92586654adeb2bcf228 (patch) | |
| tree | 1105e60b43ef80d105ca613ece1c8cfc6ee64f07 /etc | |
| parent | 44e7ee2e356452139156e8175c46f646835d27ff (diff) | |
| download | emacs-0d55c44a9a00da3b8542e92586654adeb2bcf228.tar.gz emacs-0d55c44a9a00da3b8542e92586654adeb2bcf228.zip | |
Compare and round more carefully
* etc/NEWS: Document this.
* src/data.c (store_symval_forwarding):
* src/sound.c (parse_sound):
Do not botch NaN comparison.
* src/data.c (cons_to_unsigned, cons_to_signed):
Signal an error if a floating-point arg is not integral.
* src/data.c (cons_to_unsigned, cons_to_signed):
* src/fileio.c (file_offset):
Use simpler overflow check.
* src/dbusbind.c (xd_extract_signed, xd_extract_unsigned):
Avoid rounding error in overflow check.
(Fcar_less_than_car): Use arithcompare directly.
* test/src/charset-tests.el: New file.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -915,6 +915,11 @@ Emacs integers with %e, %f, or %g conversions. For example, on these | |||
| 915 | hosts (eql N (string-to-number (format "%.0f" N))) now returns t for | 915 | hosts (eql N (string-to-number (format "%.0f" N))) now returns t for |
| 916 | all Emacs integers N. | 916 | all Emacs integers N. |
| 917 | 917 | ||
| 918 | --- | ||
| 919 | ** Calls that accept floating-point integers (for use on hosts with | ||
| 920 | limited integer range) now signal an error if arguments are not | ||
| 921 | integral. For example (decode-char 'ascii 0.5) now signals an error. | ||
| 922 | |||
| 918 | +++ | 923 | +++ |
| 919 | ** The new function 'char-from-name' converts a Unicode name string | 924 | ** The new function 'char-from-name' converts a Unicode name string |
| 920 | to the corresponding character code. | 925 | to the corresponding character code. |