summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-09-18 19:16:05 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-09-19 15:21:03 +0200
commit321f2e1e4d4b2f209b072dc891cc89cbab19f032 (patch)
tree8d5747df71c6936ed27e75b787460e10f6c415cd /lisp/emacs-lisp/bytecomp.el
parent7be5c8f47c9df01a5accdbf954d952b9bbe5b5f0 (diff)
downloademacs-321f2e1e4d4b2f209b072dc891cc89cbab19f032.tar.gz
emacs-321f2e1e4d4b2f209b072dc891cc89cbab19f032.tar.bz2
emacs-321f2e1e4d4b2f209b072dc891cc89cbab19f032.zip
Don't use pointer arithmetic for pointer tagging (bug#65491)
This makes for safer code when tagging null pointers in particular, since pointer arithmetic on NULL is undefined and therefore can be assumed, by the compiler, not to occur. * src/lisp.h (untagged_ptr): Remove. (TAG_PTR): Cast to uintptr_t instead of untagged_ptr.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
0 files changed, 0 insertions, 0 deletions