com php-src: fix datatype mismatch warnings: ext/ctype/ctype.c
| From: | Anatol Belski | Date: | Thu, 30 Oct 2014 19:06:50 +0000 |
| Subject: | com php-src: fix datatype mismatch warnings: ext/ctype/ctype.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82903@lists.php.net to get a copy of this message | ||
Commit: c7fa02948792a302c70e7530ee1058d6d3abefe6
Author: Anatol Belski <ab@php.net> Thu, 30 Oct 2014 18:07:58 +0100
Parents: edfabf19a756bd8023698087d822e420824edfe4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c7fa02948792a302c70e7530ee1058d6d3abefe6
Log:
fix datatype mismatch warnings
Changed paths:
M ext/ctype/ctype.c
Diff:
diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c
index 41d5559..b03afe0 100644
--- a/ext/ctype/ctype.c
+++ b/ext/ctype/ctype.c
@@ -148,9 +148,9 @@ static PHP_MINFO_FUNCTION(ctype)
return; \
if (Z_TYPE_P(c) == IS_LONG) { \
if (Z_LVAL_P(c) <= 255 && Z_LVAL_P(c) >= 0) { \
- RETURN_BOOL(iswhat(Z_LVAL_P(c))); \
+ RETURN_BOOL(iswhat((int)Z_LVAL_P(c))); \
} else if (Z_LVAL_P(c) >= -128 && Z_LVAL_P(c) < 0) { \
- RETURN_BOOL(iswhat(Z_LVAL_P(c) + 256)); \
+ RETURN_BOOL(iswhat((int)Z_LVAL_P(c) + 256)); \
} \
tmp = *c; \
zval_copy_ctor(&tmp); \