linux.Stat -> linux.Statx

This provides access to os.Stat.creation_time for Linux.
Added a cast to string_interner.cpp for 32-bit compiles.
This commit is contained in:
jason
2026-05-12 18:24:08 -04:00
parent e70f846de0
commit bb9cddabac
5 changed files with 16 additions and 19 deletions

View File

@@ -81,7 +81,7 @@ gb_internal String string_interner_load(InternedString interned) {
u8 *base = cast(u8 *)interner + interned.value;
u32 str_len = *cast(u32 *)base;
u8 *text = base + 4;
String str = { text, str_len };
String str = { text, cast(isize)str_len };
return str;
}
@@ -228,4 +228,4 @@ gb_internal void *string_interner_thread_local_arena_alloc(StringInternerThreadL
u8 *return_head = tl_arena->data + new_head;
tl_arena->cursor = cursor;
return return_head;
}
}