aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-06-17 12:49:04 -0700
committerPaul Eggert2011-06-17 12:49:04 -0700
commit76031fad32560b8a47739bd57b02c762e39ec27d (patch)
tree19e5aee7815d9a5765f0d5bb0108b55f5f70b843
parent7d100a81b7b1127f55cd1033ce5a6ce2d350ba19 (diff)
downloademacs-76031fad32560b8a47739bd57b02c762e39ec27d.tar.gz
emacs-76031fad32560b8a47739bd57b02c762e39ec27d.zip
* xdisp.c (init_iterator): Use XINT, not XFASTINT; it might be < 0.
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xdisp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f9ed0c6cfc7..d88aa4929ca 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-06-17 Paul Eggert <eggert@cs.ucla.edu> 12011-06-17 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * xdisp.c (init_iterator): Use XINT, not XFASTINT; it might be < 0.
4
3 * composite.c: Don't truncate sizes to 'int'. 5 * composite.c: Don't truncate sizes to 'int'.
4 (composition_gstring_p, composition_reseat_it) 6 (composition_gstring_p, composition_reseat_it)
5 (composition_adjust_point): Use EMACS_INT, not int. 7 (composition_adjust_point): Use EMACS_INT, not int.
diff --git a/src/xdisp.c b/src/xdisp.c
index 5a0b0060fa3..2694bb4848d 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2385,7 +2385,7 @@ init_iterator (struct it *it, struct window *w,
2385 is invisible. >0 means lines indented more than this value are 2385 is invisible. >0 means lines indented more than this value are
2386 invisible. */ 2386 invisible. */
2387 it->selective = (INTEGERP (BVAR (current_buffer, selective_display)) 2387 it->selective = (INTEGERP (BVAR (current_buffer, selective_display))
2388 ? XFASTINT (BVAR (current_buffer, selective_display)) 2388 ? XINT (BVAR (current_buffer, selective_display))
2389 : (!NILP (BVAR (current_buffer, selective_display)) 2389 : (!NILP (BVAR (current_buffer, selective_display))
2390 ? -1 : 0)); 2390 ? -1 : 0));
2391 it->selective_display_ellipsis_p 2391 it->selective_display_ellipsis_p