]> git.eshelyaron.com Git - emacs.git/commitdiff
src/bytecode.c (exec_byte_code): Remove unnecessary (e)assert.
authorVibhav Pant <vibhavp@gmail.com>
Sat, 11 Feb 2017 17:39:47 +0000 (23:09 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Sat, 11 Feb 2017 17:39:47 +0000 (23:09 +0530)
src/bytecode.c

index 8bc1ecfeaa565790811e7da27913b9c4f1d08342..156265faeea5c4f2183fd0779c66a636549b129b 100644 (file)
@@ -1422,11 +1422,9 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
             Lisp_Object v1 = POP;
             ptrdiff_t i;
             struct Lisp_Hash_Table *h = XHASH_TABLE(jmp_table);
-            /* Hash tables for switch are declared with :size set to the
-               exact number of cases.  */
-            if (BYTE_CODE_SAFE)
-              eassert (HASH_TABLE_SIZE (h) == h->count);
 
+            /* h->count is a faster approximation for HASH_TABLE_SIZE (h)
+               here. */
             if (h->count <= 5)
               { /* Do a linear search if there are not many cases
                    FIXME: 5 is arbitrarily chosen.  */