diff src/line-number.c @ 406:b8cc9ab3f761 r21-2-33

Import from CVS: tag r21-2-33
author cvs
date Mon, 13 Aug 2007 11:17:09 +0200
parents 2f8bb876ab1d
children 697ef44129c6
line wrap: on
line diff
--- a/src/line-number.c	Mon Aug 13 11:16:09 2007 +0200
+++ b/src/line-number.c	Mon Aug 13 11:17:09 2007 +0200
@@ -293,7 +293,7 @@
       get_nearest_line_number (b, &beg, pos, &cached_lines);
     }
 
-  scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : EMACS_INT_MIN,
+  scan_buffer (b, '\n', beg, pos, pos > beg ? EMACS_INT_MAX : -EMACS_INT_MAX,
 	       &shortage, 0);
 
   line = EMACS_INT_MAX - shortage;