summaryrefslogtreecommitdiff
path: root/ext/standard/php_string.h
diff options
context:
space:
mode:
authorStephen van Egmond <svanegmond@php.net>2001-03-17 20:35:38 +0000
committerStephen van Egmond <svanegmond@php.net>2001-03-17 20:35:38 +0000
commit3b8140e47c1b1cfdec6210b0ff1d6a7fb8dbae48 (patch)
tree049872d21ef4abc6cec0d353395f5a7dbe66e63a /ext/standard/php_string.h
parentfcdd641539289cae380ed6d789957bc6bd18d986 (diff)
downloadphp-git-3b8140e47c1b1cfdec6210b0ff1d6a7fb8dbae48.tar.gz
fixed a (C++) warning about implicit conversion from void*
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r--ext/standard/php_string.h2
1 files changed, 1 insertions, 1 deletions
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;
}