summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-run.el
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2022-05-28 23:53:51 -0400
committerLars Ingebrigtsen <larsi@gnus.org>2022-06-10 11:53:30 +0200
commitc7037219b025ea7a53fc57528eaf5e41511f1e92 (patch)
tree0daa6ae5865ff73de8265d783a27ec93c6b278ba /lisp/emacs-lisp/byte-run.el
parent4dfa7061588c63158e32d8af2f554c1182618ec0 (diff)
downloademacs-c7037219b025ea7a53fc57528eaf5e41511f1e92.tar.gz
emacs-c7037219b025ea7a53fc57528eaf5e41511f1e92.tar.bz2
emacs-c7037219b025ea7a53fc57528eaf5e41511f1e92.zip
; bindat (strz): Consistent length type check, take two
Commit 30ec4a7347b2944818c6fc469ae871374ce7caa4 is incorrect -- the length computation logic uses a simple nilness test, not `numberp'. The `numberp' case is just an optimization if `len' is a literal number; it does not affect the behavior. Revert that commit, add some comments to help future readers avoid the same mistake, and update the pack logic to use the same optimization as the length computation for consistency.
Diffstat (limited to 'lisp/emacs-lisp/byte-run.el')
0 files changed, 0 insertions, 0 deletions