diff options
Diffstat (limited to 'src/libstddjb/sgetopt.c')
-rw-r--r-- | src/libstddjb/sgetopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/sgetopt.c b/src/libstddjb/sgetopt.c index 3f94c93..f576689 100644 --- a/src/libstddjb/sgetopt.c +++ b/src/libstddjb/sgetopt.c @@ -9,7 +9,7 @@ int sgetopt_r (int argc, char const *const *argv, char const *opts, subgetopt_t *o) { - char c = (char)subgetopt_r(argc, argv, opts, o) ; + int c = subgetopt_r(argc, argv, opts, o) ; if (o->err && ((c == '?') || (c == ':'))) { buffer_puts(buffer_2, o->prog ? o->prog : argv[0]) ; @@ -18,5 +18,5 @@ int sgetopt_r (int argc, char const *const *argv, char const *opts, subgetopt_t "illegal option" : "option requires an argument") ; buffer_putflush(buffer_2, "\n", 1) ; } - return (int)c ; + return c ; } |