Mercurial > emacs
comparison src/insdel.c @ 39639:f5ac153e5b5c
(make_gap): Use MOST_POSITIVE_FIXNUM.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 06 Oct 2001 23:46:55 +0000 |
parents | 796039437953 |
children | 5f60884970a8 |
comparison
equal
deleted
inserted
replaced
39638:911382113c16 | 39639:f5ac153e5b5c |
---|---|
537 /* Don't allow a buffer size that won't fit in an int | 537 /* Don't allow a buffer size that won't fit in an int |
538 even if it will fit in a Lisp integer. | 538 even if it will fit in a Lisp integer. |
539 That won't work because so many places use `int'. */ | 539 That won't work because so many places use `int'. */ |
540 | 540 |
541 if (Z_BYTE - BEG_BYTE + GAP_SIZE + nbytes_added | 541 if (Z_BYTE - BEG_BYTE + GAP_SIZE + nbytes_added |
542 >= ((unsigned) 1 << (min (BITS_PER_INT, VALBITS) - 1))) | 542 >= MOST_POSITIVE_FIXNUM) |
543 error ("Buffer exceeds maximum size"); | 543 error ("Buffer exceeds maximum size"); |
544 | 544 |
545 enlarge_buffer_text (current_buffer, nbytes_added); | 545 enlarge_buffer_text (current_buffer, nbytes_added); |
546 | 546 |
547 /* Prevent quitting in move_gap. */ | 547 /* Prevent quitting in move_gap. */ |