Allow for nested temp_allocator() calls to flip between arenas on TEMP_ALLOCATOR_GUARDs

This commit is contained in:
gingerBill
2024-08-04 17:14:24 +01:00
parent f427f040fd
commit d0709a7de2
3 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ _mkdir_all :: proc(path: string, perm: int) -> Error {
path_bytes[len(path)] = 0
dfd: linux.Fd
errno: linux.Error
errno: linux.Errno
if path_bytes[0] == '/' {
dfd, errno = linux.open("/", _OPENDIR_FLAGS)
path_bytes = path_bytes[1:]