Hexadecimal floats for "perfect values" 0h42f60000 == 123; use bit_cast in compiler

This commit is contained in:
gingerBill
2018-02-25 15:09:16 +00:00
parent 27b7dc336a
commit d247ba4751
9 changed files with 70 additions and 54 deletions
+1 -1
View File
@@ -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");
}