com php-src: fix type: ext/mysqlnd/mysqlnd_ps.c
| From: | Anatol Belski | Date: | Tue, 02 Sep 2014 13:56:13 +0000 |
| Subject: | com php-src: fix type: ext/mysqlnd/mysqlnd_ps.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81368@lists.php.net to get a copy of this message | ||
Commit: fee39d0868e416d80b4cf3f3c206d3c43c02ef6a
Author: Anatol Belski <ab@php.net> Tue, 2 Sep 2014 15:54:16 +0200
Parents: e3da88b898943f24ad74c8b5c47ba47b85fd90fc
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fee39d0868e416d80b4cf3f3c206d3c43c02ef6a
Log:
fix type
Changed paths:
M ext/mysqlnd/mysqlnd_ps.c
Diff:
diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c
index e2745d8..458ce47 100644
--- a/ext/mysqlnd/mysqlnd_ps.c
+++ b/ext/mysqlnd/mysqlnd_ps.c
@@ -905,7 +905,7 @@ mysqlnd_stmt_fetch_row_unbuffered(MYSQLND_RES * result, void * param, unsigned i
#endif
if (!Z_ISNULL_P(data)) {
if ((Z_TYPE_P(data) == IS_STRING) &&
- (meta->fields[i].max_length < (unsigned long) Z_STRLEN_P(data))) {
+ (meta->fields[i].max_length < (zend_ulong) Z_STRLEN_P(data))) {
meta->fields[i].max_length = Z_STRLEN_P(data);
}
ZVAL_COPY_VALUE(result, data);
@@ -1093,7 +1093,7 @@ mysqlnd_fetch_stmt_row_cursor(MYSQLND_RES * result, void * param, unsigned int
f
if (!Z_ISNULL_P(data)) {
if ((Z_TYPE_P(data) == IS_STRING) &&
- (meta->fields[i].max_length < (unsigned long) Z_STRLEN_P(data))) {
+ (meta->fields[i].max_length < (zend_ulong) Z_STRLEN_P(data))) {
meta->fields[i].max_length = Z_STRLEN_P(data);
}
ZVAL_COPY_VALUE(result, data);