diff --git a/src/bytecode.c b/src/bytecode.c index 64d9e5d27c6..e3e36d9b315 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -858,7 +858,7 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, if (BYTE_CODE_SAFE && !(arg >= 0 && arg < bytestr_length)) emacs_abort (); const unsigned char *new_pc = bytestr_data + arg; - quitcounter += arg < 0; + quitcounter += new_pc < pc; if (!quitcounter) { quitcounter = 1;