mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 12:27:33 +00:00
* editfns.c (Ftranslate_region_internal): Omit redundant test.
This commit is contained in:
parent
c1f134b59b
commit
045eb8d982
2 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue