From b5a3e010d88c8bad4af30d87b1aada85ddd14ad0 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 26 May 2022 22:13:24 +0200 Subject: [PATCH] Add {} for if --- m-core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m-core.h b/m-core.h index 59e827ae..a8eac078 100644 --- a/m-core.h +++ b/m-core.h @@ -2304,7 +2304,7 @@ static inline bool m_core_parse_char (char *ptr, const char str[], const char **endptr) { *ptr = *str++; - if (endptr != NULL) *endptr = str; + if (endptr != NULL) { *endptr = str; } return true; } @@ -2313,7 +2313,7 @@ m_core_parse_bool (bool *ptr, const char str[], const char **endptr) { char c = *str++; *ptr = (c == '1'); - if (endptr != NULL) *endptr = str; + if (endptr != NULL) { *endptr = str; } return (c == '0' || c == '1'); } @@ -2323,7 +2323,7 @@ m_core_parse_bool (bool *ptr, const char str[], const char **endptr) { \ char *end; \ *ptr = (type) parse_func (str, &end extra_arg); \ - if (endptr != NULL) *endptr = end; \ + if (endptr != NULL) { *endptr = end; } \ return end != str; \ }