dmitry Tue Jul 10 09:57:23 2007 UTC
Modified files:
/php-src/ext/pcre php_pcre.c
Log:
Fixed compilation warnings
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.215&r2=1.216&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.215 php-src/ext/pcre/php_pcre.c:1.216
--- php-src/ext/pcre/php_pcre.c:1.215 Tue Jul 10 09:11:35 2007
+++ php-src/ext/pcre/php_pcre.c Tue Jul 10 09:57:23 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.215 2007/07/10 09:11:35 dmitry Exp $ */
+/* $Id: php_pcre.c,v 1.216 2007/07/10 09:57:23 dmitry Exp $ */
/* TODO
* php_pcre_replace_impl():
@@ -594,7 +594,7 @@
/* Calculate byte offset from codepoint offset */
if (start_offset < 0) {
k = subject_len;
- U8_BACK_N(subject, 0, k, -start_offset);
+ U8_BACK_N((unsigned char*)subject, 0, k, -start_offset);
} else {
U8_FWD_N(subject, k, subject_len, start_offset);
}
@@ -1772,7 +1772,7 @@
if (delim && *delim) {
if (UG(unicode)) {
- U8_GET(delim, 0, 0, delim_len, delim_char);
+ U8_GET((unsigned char*)delim, 0, 0, delim_len,
delim_char);
} else {
delim_char = (UChar32)delim[0];
}
@@ -1899,7 +1899,7 @@
int size_offsets; /* Size of the
offsets array */
int count = 0; /*
Count of matched subpatterns */
zstr string_key;
- int string_key_len;
+ uint string_key_len;
ulong num_key;
zend_bool invert; /* Whether to
return non-matching
entries */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php