X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=test-parse-options.c;h=61d2c39814529bd0264e4c9e40241131d51d819c;hb=45e2b6140147d7a8b2cd68399e4d52d5d8d7b5be;hp=6e18083a7d1655e9eabef197c58d92a910d2f67b;hpb=7e4ad908721445b073f3b4ecad55bbd78f032cdc;p=git.git diff --git a/test-parse-options.c b/test-parse-options.c index 6e18083a7..61d2c3981 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -15,7 +15,7 @@ int length_callback(const struct option *opt, const char *arg, int unset) if (unset) return 1; /* do not support unset */ - *(unsigned long *)opt->value = strlen(arg); + *(int *)opt->value = strlen(arg); return 0; }