mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-20 00:52:33 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user