From 9d949ef82edc8307173889328cc32084a909e89c Mon Sep 17 00:00:00 2001 From: Jason Dsouza <61184127+jasmcaus@users.noreply.github.com> Date: Mon, 19 Apr 2021 11:41:02 +0530 Subject: [PATCH 1/2] Fix potential Typo : S32 ==> I32 --- src/gb/gb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gb/gb.h b/src/gb/gb.h index b56c20f1e..60e7b8e64 100644 --- a/src/gb/gb.h +++ b/src/gb/gb.h @@ -491,8 +491,8 @@ typedef i32 b32; // NOTE(bill): Prefer this!!! #define USIZE_MIX U32_MIN #define USIZE_MAX U32_MAX - #define ISIZE_MIX S32_MIN - #define ISIZE_MAX S32_MAX + #define ISIZE_MIX I32_MIN + #define ISIZE_MAX I32_MAX #elif defined(GB_ARCH_64_BIT) #define USIZE_MIX U64_MIN #define USIZE_MAX U64_MAX From 22867ec6f09c2b6500aba558ede7c7ba95ae9c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <49562770+awwdev@users.noreply.github.com> Date: Tue, 20 Apr 2021 22:09:10 +0200 Subject: [PATCH 2/2] fix variable name in path_unix replace the immutable variable "path" (that is a parameter) with a new variable "path_str" --- core/path/filepath/path_unix.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/path/filepath/path_unix.odin b/core/path/filepath/path_unix.odin index a1e16a3e9..165d856de 100644 --- a/core/path/filepath/path_unix.odin +++ b/core/path/filepath/path_unix.odin @@ -34,8 +34,8 @@ abs :: proc(path: string, allocator := context.allocator) -> (string, bool) { defer _unix_free(path_ptr); path_cstr := cstring(path_ptr); - path = strings.clone(string(path_cstr), allocator); - return path, true; + path_str := strings.clone(string(path_cstr), allocator); + return path_str, true; } join :: proc(elems: ..string, allocator := context.allocator) -> string {