Branch: Tag:

2014-12-04

2014-12-04 19:23:36 by Martin Nilsson <nilsson@opera.com>

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)