mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-01 11:20:41 -08:00
* xfaces.c: Don't assume buffer size fits in 'int'.
This commit is contained in:
parent
c71f515666
commit
56adbe62a5
2 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue