* mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to
authorJim Blandy <jimb@redhat.com>
Mon, 16 Nov 1992 00:45:34 +0000 (00:45 +0000)
committerJim Blandy <jimb@redhat.com>
Mon, 16 Nov 1992 00:45:34 +0000 (00:45 +0000)
remove DATA_SEG_BITS from the pointer before testing if the
pointer fits in VALBITS.

src/mem-limits.h

index 0150b83..06c8e1f 100644 (file)
@@ -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