]> git.eshelyaron.com Git - emacs.git/commit
Simplify pointer computation in mark_maybe_object
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 3 Aug 2020 22:21:58 +0000 (15:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Aug 2020 02:08:58 +0000 (19:08 -0700)
commita4ed198e8f3754a59cabbb03ab6bae8a49597ee0
tree16b32bfde1b9c9becc75859aff248709ecf72b43
parentca419812d35f252fca2708ffdd132c223d094c0f
Simplify pointer computation in mark_maybe_object

* src/alloc.c (mark_maybe_object):
Use simpler way to avoid -fsanitize=undefined false alarms,
by converting the word tag to intptr_t first.
Omit now-unnecessary runtime overflow check.
(mark_memory): Work even if UINTPTR_MAX <= INT_MAX (!).
src/alloc.c