projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce99ea
)
Optimize a few expressions.
author
drepper
<drepper>
Wed, 9 Sep 1998 11:51:29 +0000
(11:51 +0000)
committer
drepper
<drepper>
Wed, 9 Sep 1998 11:51:29 +0000
(11:51 +0000)
string/strxfrm.c
patch
|
blob
|
history
diff --git
a/string/strxfrm.c
b/string/strxfrm.c
index
b3e99fb
..
0bdf106
100644
(file)
--- a/
string/strxfrm.c
+++ b/
string/strxfrm.c
@@
-217,8
+217,9
@@
STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, __locale_t l)
== (u_int32_t) IGNORE_CHAR))
{
++ignore;
- if ((forward && ++idx >= run->data[pass].number)
- || (!forward && --idx < 0))
+ if (forward
+ ? ++idx >= run->data[pass].number
+ : --idx < 0)
{
weight_t *nextp = forward ? run->next : run->prev;
if (nextp == NULL)