diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-11 22:32:19 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-11 22:32:19 +0000 |
commit | b66b92e99682ca1e66fd84a2b5c1db8c92086271 (patch) | |
tree | 87b9b35e503ed6a7d0340ec0209ae6139b813ba9 /ext/standard/pack.c | |
parent | dd2ad168e1539fdc678e9849595a8d5e040cf72a (diff) | |
download | php-git-b66b92e99682ca1e66fd84a2b5c1db8c92086271.tar.gz |
Reduced warnings in ZE2 build
Diffstat (limited to 'ext/standard/pack.c')
-rw-r--r-- | ext/standard/pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/pack.c b/ext/standard/pack.c index 0002aaeb37..56919f71fe 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -320,7 +320,7 @@ PHP_FUNCTION(pack) val = argv[currentarg++]; convert_to_string_ex(val); memcpy(&output[outputpos], Z_STRVAL_PP(val), - (Z_STRLEN_PP(val) < arg) ? Z_STRLEN_PP(val) : arg); + ((int)Z_STRLEN_PP(val) < arg) ? Z_STRLEN_PP(val) : arg); outputpos += arg; break; @@ -334,7 +334,7 @@ PHP_FUNCTION(pack) convert_to_string_ex(val); v = Z_STRVAL_PP(val); outputpos--; - if(arg > Z_STRLEN_PP(val)) { + if(arg > (int)Z_STRLEN_PP(val)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: not enough characters in string", code); arg = Z_STRLEN_PP(val); } |