From 25a2eb0875e28ff40c2f81d3f5d25e829c1711c9 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 11 Apr 2023 21:32:38 +0200 Subject: [PATCH] Correct syntax --- m-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-core.h b/m-core.h index 765ae45f..09c634ff 100644 --- a/m-core.h +++ b/m-core.h @@ -2690,7 +2690,7 @@ m_core_parse_bool (bool *ptr, const char str[], const char **endptr) char c = *str++; *ptr = (c == '1'); if (endptr != NULL) { *endptr = str; } - return (c == '0' || c == '1'); + return (c == '0') || (c == '1'); } #define M_PARSE_DEFAULT_TYPE_DEF(name, type, parse_func, extra_arg) \