From 72fcbb18ab3bbd8971777f62ee9fcb967ab25e9e Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 7 Jun 2023 20:21:58 +0800 Subject: [PATCH] added "const" prefix. --- src/Text/Endian.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Endian.cpp b/src/Text/Endian.cpp index ae8c500..75df4a1 100644 --- a/src/Text/Endian.cpp +++ b/src/Text/Endian.cpp @@ -4,7 +4,7 @@ namespace hgl { bool CheckSystemEndian() { - constexpr uint16 db=0xABCD; + constexpr const uint16 db=0xABCD; #if HGL_ENDIAN == HGL_BIG_ENDIAN return(*(uint8 *)&db==0xAB);