added "const" prefix.

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-06-07 20:21:58 +08:00
parent 97422170df
commit 72fcbb18ab

View File

@ -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);