mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
Fix string_extension_position
This commit is contained in:
1 parent
0424404140
commit
25e9255157
1 file changed
+1
-1
+1
-1
@@ -205,7 +205,7 @@ gb_internal gb_inline isize string_extension_position(String const &str) {
|
||||
isize dot_pos = -1;
|
||||
isize i = str.len;
|
||||
while (i --> 0) {
|
||||
if (str[i] == GB_PATH_SEPARATOR)
|
||||
if (str[i] == '\\' || str[i] == '/')
|
||||
break;
|
||||
if (str[i] == '.') {
|
||||
dot_pos = i;
|
||||
|
||||
Reference in new issue
Block a user