diff options
author | Richard Hansen <rhansen@rhansen.org> | 2022-05-28 23:53:51 -0400 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-10 11:53:30 +0200 |
commit | c7037219b025ea7a53fc57528eaf5e41511f1e92 (patch) | |
tree | 0daa6ae5865ff73de8265d783a27ec93c6b278ba /lisp/emacs-lisp/regexp-opt.el | |
parent | 4dfa7061588c63158e32d8af2f554c1182618ec0 (diff) | |
download | emacs-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/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions