Commit fdccd48e authored by Paul Eggert's avatar Paul Eggert
Browse files

* mem-limits.h (EXCEEDS_LISP_PTR) [!USE_LSB_TAG]: EMACS_UINT -> uintptr_t

This follows up to the 2011-05-06 change that substituted uintptr_t
for EMACS_INT.  This case wasn't caught back then.
parent af3d522f
2011-05-23 Paul Eggert <eggert@cs.ucla.edu>
* mem-limits.h (EXCEEDS_LISP_PTR) [!USE_LSB_TAG]: EMACS_UINT -> uintptr_t
This follows up to the 2011-05-06 change that substituted uintptr_t
for EMACS_INT. This case wasn't caught back then.
2011-05-22 Paul Eggert <eggert@cs.ucla.edu> 2011-05-22 Paul Eggert <eggert@cs.ucla.edu>
Rework Fformat to avoid integer overflow issues. Rework Fformat to avoid integer overflow issues.
......
...@@ -40,8 +40,7 @@ extern char *start_of_data (void); ...@@ -40,8 +40,7 @@ extern char *start_of_data (void);
#define EXCEEDS_LISP_PTR(ptr) 0 #define EXCEEDS_LISP_PTR(ptr) 0
#elif defined DATA_SEG_BITS #elif defined DATA_SEG_BITS
#define EXCEEDS_LISP_PTR(ptr) \ #define EXCEEDS_LISP_PTR(ptr) \
(((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS) (((uintptr_t) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
#else #else
#define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS) #define EXCEEDS_LISP_PTR(ptr) ((uintptr_t) (ptr) >> VALBITS)
#endif #endif
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