diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-25 15:09:16 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-25 15:09:16 +0000 |
| commit | d247ba4751d8189082849e114e3d4a6106b0d053 (patch) | |
| tree | 56e023cb3006392918e2074b1d1489b06f59f4dd /src/build_settings.cpp | |
| parent | 27b7dc336ab7c108d711d6ce00686467f1f0319c (diff) | |
Hexadecimal floats for "perfect values" 0h42f60000 == 123; use `bit_cast` in compiler
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 55d446c05..a724e5894 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -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"); } |