mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
More function flatening
This commit is contained in:
parent
ccc2eb3298
commit
a25bd052d7
2 changed files with 2 additions and 2 deletions
2
main.c
2
main.c
|
@ -403,7 +403,7 @@ static bool options_parse(int argc, char **argv) {
|
|||
return false;
|
||||
}
|
||||
if (isdigit(argarg[0])) {
|
||||
uint32_t val = atoi(argarg);
|
||||
uint32_t val = (uint32_t)strtol(argarg, NULL, 10);
|
||||
OPTS_OPTION_U32(OPTION_O) = val;
|
||||
opts_setoptimlevel(val);
|
||||
} else {
|
||||
|
|
2
opts.c
2
opts.c
|
@ -257,7 +257,7 @@ static size_t opts_ini_parse (
|
|||
static bool opts_ini_bool(const char *value) {
|
||||
if (!strcmp(value, "true")) return true;
|
||||
if (!strcmp(value, "false")) return false;
|
||||
return !!atoi(value);
|
||||
return !!strtoul(value, NULL, 10);
|
||||
}
|
||||
|
||||
static char *opts_ini_load(const char *section, const char *name, const char *value) {
|
||||
|
|
Loading…
Reference in a new issue