diff options
| author | jockus <joakim.hentula@gmail.com> | 2020-08-26 17:32:47 +0100 |
|---|---|---|
| committer | jockus <joakim.hentula@gmail.com> | 2020-08-26 17:32:47 +0100 |
| commit | 8de70ce73dd3fc9740a0589e6167d950d02f244d (patch) | |
| tree | 8ae51ac885ddcc8c90936efcd58ef380763a4057 /core/path | |
| parent | 7309cfdbb203592d9f7da098e40a8d3acfeef592 (diff) | |
Fix path.name failing to remove extension
Diffstat (limited to 'core/path')
| -rw-r--r-- | core/path/path.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/path/path.odin b/core/path/path.odin index b2fe1c7df..3826e8032 100644 --- a/core/path/path.odin +++ b/core/path/path.odin @@ -48,8 +48,8 @@ base :: proc(path: string, new := false, allocator := context.allocator) -> stri name :: proc(path: string, new := false, allocator := context.allocator) -> string {
if path == "" do return "";
- dot := len(path);
- end := dot - 1;
+ end := len(path) - 1;
+ dot := end;
for i := end; i >= 0; i -= 1 {
switch path[i] {
|