Commit 27050994 authored by Jim Blandy's avatar Jim Blandy
Browse files

* mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to

	remove DATA_SEG_BITS from the pointer before testing if the
	pointer fits in VALBITS.
parent e37c0805
......@@ -44,7 +44,12 @@ typedef unsigned long SIZE;
#define NULL ((POINTER) 0)
extern POINTER start_of_data ();
#ifdef DATA_SEG_BITS
#define EXCEEDS_LISP_PTR(ptr) \
(((unsigned int) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
#else
#define EXCEEDS_LISP_PTR(ptr) ((unsigned int) (ptr) >> VALBITS)
#endif
#ifdef BSD
#ifndef DATA_SEG_BITS
......
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