1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

* xfaces.c: Don't assume buffer size fits in 'int'.

This commit is contained in:
Paul Eggert 2012-08-02 02:20:01 -07:00
parent c71f515666
commit 56adbe62a5
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
2012-08-02 Paul Eggert <eggert@cs.ucla.edu>
* xfaces.c (face_at_buffer_position): Remove unused local.
(face_at_buffer_position, face_for_overlay_string):
Don't assume buffer size fits in 'int'.
Use C99-style 'extern inline' if available.
* buffer.h (BUFFER_INLINE):

View File

@ -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;