diff options
author | Jim Blandy <jimb@redhat.com> | 1992-11-16 00:45:34 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-11-16 00:45:34 +0000 |
commit | 2705099422b12fb373afdc6781a28b9aef4ba823 (patch) | |
tree | af2db67a8f28fb8f9c30be713823423d5e577697 /src | |
parent | e37c080581f5517697c6fc8fbabd626e1ca69b74 (diff) | |
download | emacs-2705099422b12fb373afdc6781a28b9aef4ba823.tar.gz |
* 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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mem-limits.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h index 0150b83b1ea..06c8e1f5dd0 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h @@ -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 |