diff src/insdel.c @ 274:ca9a9ec9c1c1 r21-0b35

Import from CVS: tag r21-0b35
author cvs
date Mon, 13 Aug 2007 10:29:42 +0200
parents c5d627a313b1
children 57709be46d1b
line wrap: on
line diff
--- a/src/insdel.c	Mon Aug 13 10:28:54 2007 +0200
+++ b/src/insdel.c	Mon Aug 13 10:29:42 2007 +0200
@@ -1874,7 +1874,7 @@
 	 That won't work because so many places use `int'.  */
 
       if (BUF_Z (buf) - BUF_BEG (buf) + BUF_GAP_SIZE (buf) + increment
-	  > (int) EMACS_INT_MAX)
+	  > EMACS_INT_MAX)
 	error ("Maximum buffer size exceeded");
 
       result = BUFFER_REALLOC (buf->text->beg,
@@ -2388,7 +2388,7 @@
 #endif
 
   /* Make sure that point-max won't exceed the size of an emacs int. */
-  if ((length + BUF_Z (buf)) > (int) EMACS_INT_MAX)
+  if ((length + BUF_Z (buf)) > EMACS_INT_MAX)
     error ("Maximum buffer size exceeded");
 
   /* theoretically not necessary -- caller should GCPRO */