]> git.eshelyaron.com Git - emacs.git/commitdiff
Port regex changes to strict ISO C
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Aug 2016 20:16:23 +0000 (16:16 -0400)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Aug 2016 20:16:45 +0000 (16:16 -0400)
* src/regex.c (regex_compile): Redo casts.

src/regex.c

index f7ca51184b3faab77e8df32b55d386f28b1db70c..f0129241cfe206595e8e2ee7eda56569de5eb6ee 100644 (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