mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Fix string_compare
This commit is contained in:
@@ -164,6 +164,7 @@ int string_compare(String const &x, String const &y) {
|
|||||||
return cast(int)x[offset] - cast(int)y[offset];
|
return cast(int)x[offset] - cast(int)y[offset];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return cast(int)(x.len - y.len);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user