]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (init_iterator): Use XINT, not XFASTINT; it might be < 0.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 Jun 2011 19:49:04 +0000 (12:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 Jun 2011 19:49:04 +0000 (12:49 -0700)
src/ChangeLog
src/xdisp.c

index f9ed0c6cfc7282bc84f834d3930fa71fa36d8876..d88aa4929cab0fef24504098c7e3d1a98b210397 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * xdisp.c (init_iterator): Use XINT, not XFASTINT; it might be < 0.
+
        * composite.c: Don't truncate sizes to 'int'.
        (composition_gstring_p, composition_reseat_it)
        (composition_adjust_point): Use EMACS_INT, not int.
index 5a0b0060fa39b01544e21e8c332a7ddc6423e539..2694bb4848d7859771d0dc151b909495c7abc635 100644 (file)
@@ -2385,7 +2385,7 @@ init_iterator (struct it *it, struct window *w,
      is invisible.  >0 means lines indented more than this value are
      invisible.  */
   it->selective = (INTEGERP (BVAR (current_buffer, selective_display))
-                  ? XFASTINT (BVAR (current_buffer, selective_display))
+                  ? XINT (BVAR (current_buffer, selective_display))
                   : (!NILP (BVAR (current_buffer, selective_display))
                      ? -1 : 0));
   it->selective_display_ellipsis_p