From ebdad09c5a0a822acb52ec58b3319d77d156f0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sun, 15 Jun 2025 16:08:26 +0200 Subject: [PATCH] * 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. --- src/bytecode.c | 5 +---- 1 file changed, 1 insertion(+), 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, { Lisp_Object sym = vectorp[op]; Lisp_Object val = POP; - - /* Inline the most common case. */ - if (!BASE_EQ (val, Qunbound) - && XBARE_SYMBOL (sym)->u.s.redirect == SYMBOL_PLAINVAL + if (XBARE_SYMBOL (sym)->u.s.redirect == SYMBOL_PLAINVAL && !XBARE_SYMBOL (sym)->u.s.trapped_write) SET_SYMBOL_VAL (XBARE_SYMBOL (sym), val); else