pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2013-06-09
2013-06-09 17:15:28 by Martin Nilsson <nilsson@opera.com>
a21b58ebc7e22e20ef944f380c7a82b41d0d8a9a (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Mask the flags that are OR:ed, and split the expression in two.
2063:
else ret->flags &= ~STRING_CONTENT_CHECKED;
-
ret->flags =
(ret->flags &
~(STRING_IS_LOWERCASE | STRING_IS_UPPERCASE)
) |
-
(aflags & b->flags);
+
ret->flags
&
= ~(STRING_IS_LOWERCASE | STRING_IS_UPPERCASE)
;
+
ret->flags
|=
(aflags & b->flags
& (STRING_IS_LOWERCASE | STRING_IS_UPPERCASE
)
)
;
} PMOD_EXPORT void update_flags_for_add( struct pike_string *a, struct pike_string *b)