Skip to content

Commit

Permalink
Silence conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoskiv committed Nov 30, 2023
1 parent b8ea678 commit b5cbc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ bool stringEquals(const char *s1, const char *s2) {

bool stringContains(const char *haystack, const char *needle) {
ASSERT(haystack); ASSERT(needle);
return strstr(haystack, needle);
return strstr(haystack, needle) ? true : false;
}

bool stringStartsWith(const char *prefix, const char *string) {
Expand Down

0 comments on commit b5cbc8d

Please sign in to comment.