com php-src: fix datatype mismatch warnings: main/getopt.c

From: Date: Mon, 27 Oct 2014 15:38:44 +0000
Subject: com php-src: fix datatype mismatch warnings: main/getopt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82717@lists.php.net to get a copy of this message
Commit: b9839296525454f6ba45191481a2678781f5d208 Author: Anatol Belski <ab@php.net> Mon, 27 Oct 2014 12:08:57 +0100 Parents: ae06555003370dd46c6b5ec0d7771ef2bdd3f308 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b9839296525454f6ba45191481a2678781f5d208 Log: fix datatype mismatch warnings Changed paths: M main/getopt.c Diff: diff --git a/main/getopt.c b/main/getopt.c index 8126d57..49ae2ba 100644 --- a/main/getopt.c +++ b/main/getopt.c @@ -81,7 +81,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 = strlen(argv[*optind])-1; + int arg_end = (int)strlen(argv[*optind])-1; /* '--' indicates end of args if not followed by a known long option name */ if (argv[*optind][2] == '\0') { @@ -111,7 +111,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char optchr = 0; dash = 0; - arg_start += strlen(opts[php_optidx].opt_name); + arg_start += (int)strlen(opts[php_optidx].opt_name); } else { if (!dash) { dash = 1;

« previous php.cvs (#82717) next »