mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix
This commit is contained in:
parent
9b87071f24
commit
2b1db0b075
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ namespace dataio {
|
|||
|
||||
inline bool is_big_endian() {
|
||||
uint16_t num = 1;
|
||||
auto bytes = reinterpret_cast<uint8_t*>(num);
|
||||
auto bytes = reinterpret_cast<uint8_t*>(&num);
|
||||
return bytes[1] == 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue