* editfns.c (Ftranslate_region_internal): Omit redundant test.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 04:27:45 +0000 (21:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 04:27:45 +0000 (21:27 -0700)
src/ChangeLog
src/editfns.c

index f5b81cf..22e64fb 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * editfns.c (Ftranslate_region_internal): Omit redundant test.
+
        * fns.c (concat): Minor tuning based on overflow analysis.
        This doesn't fix any bugs.  Use int to hold character, instead
        of constantly refetching from Emacs object.  Use XFASTINT, not
index bcf3b75..12e82c4 100644 (file)
@@ -3088,14 +3088,11 @@ It returns the number of characters changed.  */)
            }
          else
            {
-             int c;
-
              nc = oc;
              val = CHAR_TABLE_REF (table, oc);
-             if (CHARACTERP (val)
-                 && (c = XFASTINT (val), CHAR_VALID_P (c, 0)))
+             if (CHARACTERP (val))
                {
-                 nc = c;
+                 nc = XFASTINT (val);
                  str_len = CHAR_STRING (nc, buf);
                  str = buf;
                }