svanegmond Sat Mar 17 12:35:38 2001 EDT
Modified files:
/php4/ext/standard php_string.h
Log:
fixed a (C++) warning about implicit conversion from void*
Index: php4/ext/standard/php_string.h
diff -u php4/ext/standard/php_string.h:1.36 php4/ext/standard/php_string.h:1.37
--- php4/ext/standard/php_string.h:1.36 Sun Feb 25 22:07:23 2001
+++ php4/ext/standard/php_string.h Sat Mar 17 12:35:38 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_string.h,v 1.36 2001/02/26 06:07:23 andi Exp $ */
+/* $Id: php_string.h,v 1.37 2001/03/17 20:35:38 svanegmond Exp $ */
/* Synced with php 3.0 revision 1.43 1999-06-16 [ssb] */
@@ -122,7 +122,7 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]