]> git.eshelyaron.com Git - emacs.git/commitdiff
(compile_pattern): Cast result of re_compile_pattern.
authorRichard M. Stallman <rms@gnu.org>
Sat, 14 Aug 1993 20:16:43 +0000 (20:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 14 Aug 1993 20:16:43 +0000 (20:16 +0000)
src/search.c

index e0ca9a5bf6d6899f0e53129d494e9824e9970e33..b95e52aed5600cc9f7d8e97d8eb853e41d73bc16 100644 (file)
@@ -99,9 +99,8 @@ compile_pattern (pattern, bufp, regp, translate)
   last_regexp = Qnil;
   bufp->translate = translate;
   BLOCK_INPUT;
-  val = re_compile_pattern ((char *) XSTRING (pattern)->data,
-                           XSTRING (pattern)->size,
-                           bufp);
+  val = (CONST char *) re_compile_pattern ((char *) XSTRING (pattern)->data,
+                                          XSTRING (pattern)->size, bufp);
   UNBLOCK_INPUT;
   if (val)
     {