* editfns.c (Ftranslate_region_internal): Omit redundant test.

This commit is contained in:
Paul Eggert 2011-06-12 21:27:45 -07:00
parent c1f134b59b
commit 045eb8d982
2 changed files with 4 additions and 5 deletions

View 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

View 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;
}