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:
parent
c71f515666
commit
56adbe62a5
@ -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):
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user