summaryrefslogtreecommitdiff
path: root/lib/optparse/optparse.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/optparse/optparse.h')
-rw-r--r--lib/optparse/optparse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/optparse.h b/lib/optparse/optparse.h
index 8d6c0a9..9b7c7f8 100644
--- a/lib/optparse/optparse.h
+++ b/lib/optparse/optparse.h
@@ -288,7 +288,7 @@ optparse_from_long(const struct optparse_long *longopts, char *optstring)
for (i = 0; !optparse_longopts_end(longopts, i); i++) {
if (longopts[i].shortname && longopts[i].shortname < 127) {
int a;
- *p++ = longopts[i].shortname;
+ *p++ = (char)longopts[i].shortname;
for (a = 0; a < (int)longopts[i].argtype; a++)
*p++ = ':';
}