Return boolean as bool not int (#2465)

This commit is contained in:
Andrew Gaul 2024-06-04 22:38:30 +09:00 committed by GitHub
parent f3946a2310
commit ba7b2ef9f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 : ""; }
//-------------------------------------------------------------------