]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp.h (CHAR_TABLE_SET): Omit now-redundant test.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 05:24:58 +0000 (22:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 05:24:58 +0000 (22:24 -0700)
src/ChangeLog
src/lisp.h

index a9d47ebca16fb3be219bdb353ff703c926fe9770..ab821226fa48a98631fdc8127222ee349c24bc47 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * lisp.h (CHAR_TABLE_SET): Omit now-redundant test.
+
        * lread.c (Fload): Don't compare a possibly-garbage time_t value.
 
        GLYPH_CODE_FACE returns EMACS_INT, not int.
index 1324440c7000a8409c60257b3d008a5908dd0af6..389762a07e5b073d739bd1b74aba9fa707a03dc5 100644 (file)
@@ -941,8 +941,7 @@ struct Lisp_Vector
 /* Equivalent to Faset (CT, IDX, VAL) with optimization for ASCII and
    8-bit European characters.  Do not check validity of CT.  */
 #define CHAR_TABLE_SET(CT, IDX, VAL)                                   \
-  (((IDX) >= 0 && ASCII_CHAR_P (IDX)                                   \
-    && SUB_CHAR_TABLE_P (XCHAR_TABLE (CT)->ascii))                     \
+  (ASCII_CHAR_P (IDX) && SUB_CHAR_TABLE_P (XCHAR_TABLE (CT)->ascii)    \
    ? XSUB_CHAR_TABLE (XCHAR_TABLE (CT)->ascii)->contents[IDX] = VAL    \
    : char_table_set (CT, IDX, VAL))