changeset 1592:613783a3f00c

* 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.
author Jim Blandy <jimb@redhat.com>
date Mon, 16 Nov 1992 00:45:34 +0000
parents 765cb54fa9af
children a3862c6dfcd0
files src/mem-limits.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mem-limits.h	Mon Nov 16 00:45:02 1992 +0000
+++ b/src/mem-limits.h	Mon Nov 16 00:45:34 1992 +0000
@@ -44,7 +44,12 @@
 #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