From ba7b2ef9f08a8bd3da6adcc8e87e4a82cd58f413 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Tue, 4 Jun 2024 22:38:30 +0900 Subject: [PATCH] Return boolean as bool not int (#2465) --- src/string_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_util.h b/src/string_util.h index 077f5a6..7b5df2d 100644 --- a/src/string_util.h +++ b/src/string_util.h @@ -35,7 +35,7 @@ static constexpr char SPACES[] = " \t\r\n"; //------------------------------------------------------------------- // Inline functions //------------------------------------------------------------------- -static inline int is_prefix(const char *str, const char *prefix) { return strncmp(str, prefix, strlen(prefix)) == 0; } +static inline bool is_prefix(const char *str, const char *prefix) { return strncmp(str, prefix, strlen(prefix)) == 0; } static inline const char* SAFESTRPTR(const char *strptr) { return strptr ? strptr : ""; } //-------------------------------------------------------------------