aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd2025-06-15 16:08:26 +0200
committerMattias EngdegÄrd2025-06-15 17:50:32 +0200
commitebdad09c5a0a822acb52ec58b3319d77d156f0ce (patch)
treed57e76e7f7adf37733f26e0468a899ca9de2cd35 /src/bytecode.c
parent08a7477d2205f4f4a9c6bcc184fdea060c33474b (diff)
downloademacs-ebdad09c5a0a822acb52ec58b3319d77d156f0ce.tar.gz
emacs-ebdad09c5a0a822acb52ec58b3319d77d156f0ce.zip
* src/bytecode.c (exec_byte_code): Remove superfluous condition
Bytecode should never be able to set anything to Qunbound because that value is not accessible from Lisp. Found by Pip Cet.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 4475d4a0b30..1da2ecba071 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -697,10 +697,7 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template,
697 { 697 {
698 Lisp_Object sym = vectorp[op]; 698 Lisp_Object sym = vectorp[op];
699 Lisp_Object val = POP; 699 Lisp_Object val = POP;
700 700 if (XBARE_SYMBOL (sym)->u.s.redirect == SYMBOL_PLAINVAL
701 /* Inline the most common case. */
702 if (!BASE_EQ (val, Qunbound)
703 && XBARE_SYMBOL (sym)->u.s.redirect == SYMBOL_PLAINVAL
704 && !XBARE_SYMBOL (sym)->u.s.trapped_write) 701 && !XBARE_SYMBOL (sym)->u.s.trapped_write)
705 SET_SYMBOL_VAL (XBARE_SYMBOL (sym), val); 702 SET_SYMBOL_VAL (XBARE_SYMBOL (sym), val);
706 else 703 else