1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

fix argparse warnings

This commit is contained in:
IntelOrca
2016-01-09 20:34:41 +00:00
parent e7ea6381cc
commit 5fbd17293a

View File

@@ -234,7 +234,8 @@ unknown:
}
end:
memmove(this->out + this->cpidx, this->argv,
memmove((void*)(this->out + this->cpidx),
this->argv,
this->argc * sizeof(*this->out));
this->out[this->cpidx + this->argc] = NULL;
@@ -271,7 +272,7 @@ argparse_usage(struct argparse *this)
} else if (options->type == ARGPARSE_OPT_STRING) {
len += strlen("=<str>");
}
len = ceil((float)len / 4) * 4;
len = ((len + 3) / 4) * 4;
if (usage_opts_width < len) {
usage_opts_width = len;
}