Port regex changes to strict ISO C

* src/regex.c (regex_compile): Redo casts.
This commit is contained in:
Paul Eggert 2016-08-02 16:16:23 -04:00
parent 9d5cd45056
commit 0100805af1

View file

@ -2618,8 +2618,8 @@ regex_compile (const_re_char *pattern, size_t size,
main_p = p1;
main_pend = pend;
main_pattern = pattern;
p = pattern = whitespace_regexp;
pend = p + strlen ((const char *) p);
p = pattern = (re_char *) whitespace_regexp;
pend = p + strlen (whitespace_regexp);
break;
}
#endif