summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index a9ac0a5c..1d971625 100644
--- a/regex.c
+++ b/regex.c
@@ -597,7 +597,8 @@ static void char_set_add(char_set_t *set, wchar_t ch)
/* fallthrough */
case CHSET_SMALL:
assert (ch < 256);
- set->s.bitcell[CHAR_SET_INDEX(ch)] |= (1 << CHAR_SET_BIT(ch));
+ set->s.bitcell[CHAR_SET_INDEX(ch)] |=
+ convert(bitcell_t, 1) << CHAR_SET_BIT(ch);
break;
case CHSET_LARGE:
assert (ch < 0x10000);