diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-02 02:20:01 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-02 02:20:01 -0700 |
commit | 56adbe62a5c90ec0935d751fa311d41eb6d86a39 (patch) | |
tree | 6eecb4c8c8dbfb09306529932634dd0425c16387 /src/xfaces.c | |
parent | c71f515666d0ac7e509fe3a5e7e266bc0f428785 (diff) | |
download | emacs-56adbe62a5c90ec0935d751fa311d41eb6d86a39.tar.gz |
* xfaces.c: Don't assume buffer size fits in 'int'.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index e72670a1317..d6b9aae0909 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6101,7 +6101,7 @@ face_at_buffer_position (struct window *w, ptrdiff_t pos, for (i = 0; i < noverlays; i++) { Lisp_Object oend; - int oendpos; + ptrdiff_t oendpos; prop = Foverlay_get (overlay_vec[i], propname); if (!NILP (prop)) @@ -6145,7 +6145,7 @@ face_for_overlay_string (struct window *w, ptrdiff_t pos, Lisp_Object attrs[LFACE_VECTOR_SIZE]; Lisp_Object prop, position; Lisp_Object frame; - int endpos; + ptrdiff_t endpos; Lisp_Object propname = mouse ? Qmouse_face : Qface; Lisp_Object limit1, end; struct face *default_face; |