mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Minor fix to string_compare
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ gb_internal void string_to_lower(String *s) {
|
|||||||
|
|
||||||
gb_internal int string_compare(String const &a, String const &b) {
|
gb_internal int string_compare(String const &a, String const &b) {
|
||||||
if (a.text == b.text) {
|
if (a.text == b.text) {
|
||||||
return 0;
|
return cast(int)(a.len - b.len);
|
||||||
}
|
}
|
||||||
if (a.text == nullptr) {
|
if (a.text == nullptr) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user