summaryrefslogtreecommitdiff
path: root/main/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/getopt.c')
-rw-r--r--main/getopt.c2
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') {