diff options
| author | Paul Eggert | 2011-06-14 15:32:12 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-14 15:32:12 -0700 |
| commit | e6966cd635f324edcc27adecb82cd85c71cbfcad (patch) | |
| tree | 0412f99ae48f617d75b9ae26b2f27eb7d018d592 /src/ChangeLog | |
| parent | 00c604f263874880cc55a000af884c55743d6441 (diff) | |
| download | emacs-e6966cd635f324edcc27adecb82cd85c71cbfcad.tar.gz emacs-e6966cd635f324edcc27adecb82cd85c71cbfcad.zip | |
* fns.c: Don't overflow int when computing a list length.
(Fsafe_length): Return a float if the value is not representable
as a fixnum. This shouldn't happen except in contrived situations.
Use same QUIT_COUNT_HEURISTIC as Flength now does.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5d70c56cc5c..3c690a5cae0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,10 +1,14 @@ | |||
| 1 | 2011-06-14 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * fns.c (Flength): Don't overflow int when computing a list length. | 3 | * fns.c: Don't overflow int when computing a list length. |
| 4 | Use EMACS_INT, not int, to avoid unwanted truncation on 64-bit hosts. | 4 | * fns.c (QUIT_COUNT_HEURISTIC): New constant. |
| 5 | Check for QUIT every 1024 entries rather than every other entry; | 5 | (Flength, Fsafe_length): Use EMACS_INT, not int, to avoid unwanted |
| 6 | that's faster and is responsive enough. Report an error instead of | 6 | truncation on 64-bit hosts. Check for QUIT every |
| 7 | overflowing an integer. | 7 | QUIT_COUNT_HEURISTIC entries rather than every other entry; that's |
| 8 | faster and is responsive enough. | ||
| 9 | (Flength): Report an error instead of overflowing an integer. | ||
| 10 | (Fsafe_length): Return a float if the value is not representable | ||
| 11 | as a fixnum. This shouldn't happen except in contrived situations. | ||
| 8 | 12 | ||
| 9 | * alloc.c: Check that resized vectors' lengths fit in fixnums. | 13 | * alloc.c: Check that resized vectors' lengths fit in fixnums. |
| 10 | (header_size, word_size): New constants. | 14 | (header_size, word_size): New constants. |