summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index ca80bfe2e8..284035c33b 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -339,7 +339,7 @@ unsigned long long random_ull(void);
if (name##_table[i] && \
streq(name##_table[i], s)) \
return i; \
- if (safe_atou(s, &u) >= 0 && u < max) \
+ if (safe_atou(s, &u) >= 0 && u <= max) \
return (type) u; \
return (type) -1; \
} \