* fns.c (Flength): Don't overflow int when computing a list length.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 22:01:32 +0000 (15:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Jun 2011 22:01:32 +0000 (15:01 -0700)
commit00c604f263874880cc55a000af884c55743d6441
treef01e422ffd9a1cf764139f8fb568cfc90bd1c84c
parentdd0b0efbabfc187be6810a0e41b4ac5fdda667af
* fns.c (Flength): Don't overflow int when computing a list length.

Use EMACS_INT, not int, to avoid unwanted truncation on 64-bit hosts.
Check for QUIT every 1024 entries rather than every other entry;
that's faster and is responsive enough.  Report an error instead of
overflowing an integer.
src/ChangeLog
src/fns.c