From: Stephen van Egmond Date: Sat, 17 Mar 2001 20:35:38 +0000 (+0000) Subject: fixed a (C++) warning about implicit conversion from void* X-Git-Tag: php-4.0.6RC1~663 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b8140e47c1b1cfdec6210b0ff1d6a7fb8dbae48;p=php fixed a (C++) warning about implicit conversion from void* --- diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index e351cb6daf..f4a218686f 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -122,7 +122,7 @@ php_memnstr(char *haystack, char *needle, int needle_len, char *end) char *s = NULL; for(; p <= end - needle_len && - (s = memchr(p, *needle, end - p - needle_len + 1)); p = s + 1) { + (s = (char*)memchr(p, *needle, end - p - needle_len + 1)); p = s + 1) { if(memcmp(s, needle, needle_len) == 0) return s; }