2011-03-27 Paul Eggert <eggert@cs.ucla.edu>
+ * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
+
* xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
concerns.
= (curlevel == levelstart) ? -1 : (curlevel - 1)->last;
state.location = from;
state.levelstarts = Qnil;
- while (--curlevel >= levelstart)
- state.levelstarts = Fcons (make_number (curlevel->last),
- state.levelstarts);
+ while (curlevel > levelstart)
+ state.levelstarts = Fcons (make_number ((--curlevel)->last),
+ state.levelstarts);
immediate_quit = 0;
*stateptr = state;