From 50af5100a6e0234668d100ca5d4cb3479436b8c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sun, 16 Jan 2005 09:59:03 +0000 Subject: [PATCH] * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *. --- src/ChangeLog | 5 +++++ src/fringe.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 57be0b86123..159e64daf67 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-01-16 Jan Dj,Ad(Brv + + * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning + fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *. + 2005-01-16 YAMAMOTO Mitsuharu * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW) diff --git a/src/fringe.c b/src/fringe.c index e8b8cedee4c..9e9d6be081c 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -1301,7 +1301,7 @@ If BITMAP already exists, the existing definition is replaced. */) = ((struct fringe_bitmap **) xrealloc (fringe_bitmaps, max_fringe_bitmaps * sizeof (struct fringe_bitmap *))); fringe_faces - = (unsigned *) xrealloc (fringe_faces, max_fringe_bitmaps * sizeof (Lisp_Object)); + = (Lisp_Object *) xrealloc (fringe_faces, max_fringe_bitmaps * sizeof (Lisp_Object)); for (; i < max_fringe_bitmaps; i++) { @@ -1472,7 +1472,7 @@ init_fringe () fringe_bitmaps = (struct fringe_bitmap **) xmalloc (max_fringe_bitmaps * sizeof (struct fringe_bitmap *)); fringe_faces - = (unsigned *) xmalloc (max_fringe_bitmaps * sizeof (Lisp_Object)); + = (Lisp_Object *) xmalloc (max_fringe_bitmaps * sizeof (Lisp_Object)); for (i = 0; i < max_fringe_bitmaps; i++) { -- 2.39.5