Commit b609f591 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu Committed by Chong Yidong
Browse files

* alloc.c (mark_maybe_object): Return early if given a Lisp integer (Bug#6301).

parent 59e75882
2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* alloc.c (mark_maybe_object): Return early if given a Lisp
integer (Bug#6301).
2010-11-21 Ken Brown <kbrown@cornell.edu>
 
* sheap.c (STATIC_HEAP_SIZE): Revert previous change.
......
......@@ -3986,8 +3986,14 @@ DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "",
static INLINE void
mark_maybe_object (Lisp_Object obj)
{
void *po = (void *) XPNTR (obj);
struct mem_node *m = mem_find (po);
void *po;
struct mem_node *m;
if (INTEGERP (obj))
return;
po = (void *) XPNTR (obj);
m = mem_find (po);
if (m != MEM_NIL)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment