aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index d2bd649..91f45b8 100644
--- a/src/config.c
+++ b/src/config.c
@@ -67,12 +67,11 @@ static bool parse_size(char const *s, size_t *m) {
long long v = SDL_strtoll(s, &end, 10);
if (end == s || *end != '\0') {
- SDL_SetError("invalid digit %c", *end);
- return false;
+ return SDL_SetError("invalid digit %c", *end);
}
if (errno == ERANGE || v < 0 ||
(unsigned long long)v > (unsigned long long)SIZE_MAX) {
- SDL_SetError("size out of range");
+ return SDL_SetError("size out of range");
}
*m = (size_t)v;