From 2b1db0b075b72ec0d9d4486b15b9a5053c8a1c81 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 29 Aug 2024 11:51:33 +0300 Subject: [PATCH] fix --- src/util/data_io.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/data_io.hpp b/src/util/data_io.hpp index 02642a54..93022f7d 100644 --- a/src/util/data_io.hpp +++ b/src/util/data_io.hpp @@ -24,7 +24,7 @@ namespace dataio { inline bool is_big_endian() { uint16_t num = 1; - auto bytes = reinterpret_cast(num); + auto bytes = reinterpret_cast(&num); return bytes[1] == 1; }