mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 03:10:06 +00:00
Hexadecimal floats for "perfect values" 0h42f60000 == 123; use bit_cast in compiler
This commit is contained in:
@@ -346,7 +346,7 @@ void init_build_context(void) {
|
||||
|
||||
{
|
||||
u16 x = 1;
|
||||
bool big = !(*cast(u8 *)&x);
|
||||
bool big = !bit_cast<u8>(x);
|
||||
bc->ODIN_ENDIAN = big ? str_lit("big") : str_lit("little");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user