comparison src/alloc.c @ 111670:f736e5e4fef4

* alloc.c (mark_maybe_object): Return early if given a Lisp integer (Bug#6301).
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 21 Nov 2010 19:43:53 -0500
parents e06fc3baed8c
children 141d3f14d8c3
comparison
equal deleted inserted replaced
111669:ed117caa918e 111670:f736e5e4fef4
3984 /* Mark OBJ if we can prove it's a Lisp_Object. */ 3984 /* Mark OBJ if we can prove it's a Lisp_Object. */
3985 3985
3986 static INLINE void 3986 static INLINE void
3987 mark_maybe_object (Lisp_Object obj) 3987 mark_maybe_object (Lisp_Object obj)
3988 { 3988 {
3989 void *po = (void *) XPNTR (obj); 3989 void *po;
3990 struct mem_node *m = mem_find (po); 3990 struct mem_node *m;
3991
3992 if (INTEGERP (obj))
3993 return;
3994
3995 po = (void *) XPNTR (obj);
3996 m = mem_find (po);
3991 3997
3992 if (m != MEM_NIL) 3998 if (m != MEM_NIL)
3993 { 3999 {
3994 int mark_p = 0; 4000 int mark_p = 0;
3995 4001