diff options
| author | Paul Eggert | 2021-07-11 23:54:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2021-07-12 00:12:20 -0700 |
| commit | da2f772fe575b20bff51b49aa5ded2bf15a2c89d (patch) | |
| tree | d0f0f4dd40cd87cab0e89f81f6718f1da5cb7529 /src/alloc.c | |
| parent | 352baac72fd4ab1050c66cd4b27ab54acc051e50 (diff) | |
| download | emacs-da2f772fe575b20bff51b49aa5ded2bf15a2c89d.tar.gz emacs-da2f772fe575b20bff51b49aa5ded2bf15a2c89d.zip | |
Pacify gcc -Woverflow more nicely
* src/alloc.c (mark_maybe_pointer): Simplify pacification
of gcc -Woverflow (unknown GCC version).
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/alloc.c b/src/alloc.c index e3b038c51cd..ee3fd64a003 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4764,12 +4764,7 @@ mark_maybe_pointer (void *p, bool symbol_only) | |||
| 4764 | from Emacs source code, it can occur in some cases. To fix | 4764 | from Emacs source code, it can occur in some cases. To fix |
| 4765 | this problem, the pdumper code should grok non-initial | 4765 | this problem, the pdumper code should grok non-initial |
| 4766 | addresses, as the non-pdumper code does. */ | 4766 | addresses, as the non-pdumper code does. */ |
| 4767 | #ifdef WIDE_EMACS_INT | 4767 | void *po = (void *) ((uintptr_t) p & (uintptr_t) VALMASK); |
| 4768 | uintptr_t mask = ~((uintptr_t) 0); | ||
| 4769 | #else | ||
| 4770 | uintptr_t mask = VALMASK; | ||
| 4771 | #endif | ||
| 4772 | void *po = (void *) ((uintptr_t) p & mask); | ||
| 4773 | char *cp = p; | 4768 | char *cp = p; |
| 4774 | char *cpo = po; | 4769 | char *cpo = po; |
| 4775 | /* Don't use pdumper_object_p_precise here! It doesn't check the | 4770 | /* Don't use pdumper_object_p_precise here! It doesn't check the |