Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | pospathos |
Documentation says that int is in range [-9223372036854775808, 9223372036854775807], but when I set int value to maximum negative value (-9223372036854775808 or hex 8000 0000 0000 0000) it says:
“E 0:00:00.460 to_int64: Cannot represent 9223372036854775808 as 64-bit integer, provided value is too big. <C++ Error> Condition “overflow” is true. Returned: sign == 1 ? 9223372036854775807LL : (-9223372036854775807LL - 1) <C++ Source> core/ustring.cpp:1840 @ to_int64()”
Why a cant set integer to hex value of 8000 0000 0000 0000. Can someone explain what I what i’m doing wrong here?