diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 20:12:29 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 20:12:29 +0300 |
commit | 1433162083142d9ba97b085209e387b79f9fd6ab (patch) | |
tree | 07368efb983304f49ab8e7be5b450ae570ff473e /main/getopt.c | |
parent | ccf4ae95bd4801b5599936524b5466e6762c783d (diff) | |
download | php-git-1433162083142d9ba97b085209e387b79f9fd6ab.tar.gz |
Fixed compilation warnings
Diffstat (limited to 'main/getopt.c')
-rw-r--r-- | main/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/getopt.c b/main/getopt.c index cc88bd100a..57b6a3b49c 100644 --- a/main/getopt.c +++ b/main/getopt.c @@ -89,7 +89,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char } if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) { const char *pos; - int arg_end = (int)strlen(argv[*optind])-1; + size_t arg_end = strlen(argv[*optind])-1; /* '--' indicates end of args if not followed by a known long option name */ if (argv[*optind][2] == '\0') { |