diff options
| author | Paul Eggert | 2011-05-03 00:51:38 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-03 00:51:38 -0700 |
| commit | 7fc4768c45bce52d34f183eb4734d9f58745ea3d (patch) | |
| tree | b7414afb75c1fc941f8a9dd9e6b900cbd1eb9f23 /src/ChangeLog | |
| parent | fed14fd75201f3c313293432e58de8f860979a3e (diff) | |
| download | emacs-7fc4768c45bce52d34f183eb4734d9f58745ea3d.tar.gz emacs-7fc4768c45bce52d34f183eb4734d9f58745ea3d.zip | |
Arithmetic overflows now return float rather than wrapping around.
* data.c: Include <intprops.h>.
(arith_driver): Use floating point if the accumulator would otherwise
go out of EMACS_INT range.
(arith_driver, Fadd1, Fsub1): Use floating point if the result is
out of Emacs fixnum range.
* bytecode.c (exec_byte_code): Likewise, for Bsub1, Badd1, Bnegate.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ccf1fea9514..435f90abad9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2011-05-03 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-05-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Arithmetic overflows now return float rather than wrapping around. | ||
| 4 | * data.c: Include <intprops.h>. | ||
| 5 | (arith_driver): Use floating point if the accumulator would otherwise | ||
| 6 | go out of EMACS_INT range. | ||
| 7 | (arith_driver, Fadd1, Fsub1): Use floating point if the result is | ||
| 8 | out of Emacs fixnum range. | ||
| 9 | * bytecode.c (exec_byte_code): Likewise, for Bsub1, Badd1, Bnegate. | ||
| 10 | |||
| 3 | * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering. | 11 | * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering. |
| 4 | 12 | ||
| 5 | * process.c (Fformat_network_address): Fix typo: args2 -> *args2. | 13 | * process.c (Fformat_network_address): Fix typo: args2 -> *args2. |