1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00

* 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.
This commit is contained in:
Paul Eggert 2011-05-22 17:22:43 -07:00
parent af3d522ffb
commit fdccd48e6d
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,9 @@
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>
Rework Fformat to avoid integer overflow issues.

View file

@ -40,8 +40,7 @@ extern char *start_of_data (void);
#define EXCEEDS_LISP_PTR(ptr) 0
#elif defined DATA_SEG_BITS
#define EXCEEDS_LISP_PTR(ptr) \
(((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
(((uintptr_t) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
#else
#define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS)
#define EXCEEDS_LISP_PTR(ptr) ((uintptr_t) (ptr) >> VALBITS)
#endif