diff src/line-number.c @ 286:57709be46d1b r21-0b41

Import from CVS: tag r21-0b41
author cvs
date Mon, 13 Aug 2007 10:35:03 +0200
parents 558f606b08ae
children 70ad99077275
line wrap: on
line diff
--- a/src/line-number.c	Mon Aug 13 10:34:15 2007 +0200
+++ b/src/line-number.c	Mon Aug 13 10:35:03 2007 +0200
@@ -189,7 +189,7 @@
     invalidate_line_number_cache (b, from);
   else
     {
-      int shortage;
+      EMACS_INT shortage;
       scan_buffer (b, '\n', from, to, 1, &shortage, 0);
       if (!shortage)
 	invalidate_line_number_cache (b, from);
@@ -298,8 +298,7 @@
   /* An EMACS_MAXINT would be cool to have. */
 #define LOTS 999999999
 
-  scan_buffer (b, '\n', beg, pos, pos > beg ? LOTS : -LOTS,
-	       (int *)&shortage, 0);
+  scan_buffer (b, '\n', beg, pos, pos > beg ? LOTS : -LOTS, &shortage, 0);
 
   line = LOTS - shortage;
   if (beg > pos)