Minor fix to string_compare

This commit is contained in:
gingerBill
2023-01-18 16:48:11 +00:00
parent 7f3795a231
commit 48a64a2c88

View File

@@ -108,7 +108,7 @@ gb_internal void string_to_lower(String *s) {
gb_internal int string_compare(String const &a, String const &b) {
if (a.text == b.text) {
return 0;
return cast(int)(a.len - b.len);
}
if (a.text == nullptr) {
return -1;