Fix warning

This commit is contained in:
Krzosa Karol
2024-01-05 16:06:43 +01:00
parent 1cdbc10dfc
commit 150a775278

View File

@@ -175,6 +175,12 @@ bool operator==(Strs a, char *b) {
return result; return result;
} }
bool operator==(Strs a, const char *b) {
if (a.len != 1) return false;
bool result = a[0] == S8_MakeFromChar((char *)b);
return result;
}
Strs operator+(Strs a, Strs b) { Strs operator+(Strs a, Strs b) {
Strs c = {a.copy(*Perm)}; Strs c = {a.copy(*Perm)};
c.add_array(b); c.add_array(b);
@@ -323,7 +329,7 @@ void PrintCompilerFlagHelp(Strs cc) {
else if (cc == "clang") { else if (cc == "clang") {
} }
else { else {
IO_FatalError("Unhandled compiler"); IO_FatalErrorf("Unhandled compiler");
} }
} }