Home » Community » Newbie corner » Problem DUMP INT64_MIN
| Problem DUMP INT64_MIN [message #62038] |
Thu, 23 July 2026 09:36  |
DiaosLu
Messages: 2 Registered: July 2026
|
Junior Member |
|
|
here is my code
int32 a = INT_MAX;
int32 b = INT_MIN;
int64 x = INT64_MAX;
int64 y = INT64_MIN;
DUMP(a);
DUMP(b);
DUMP(x);
DUMP(y);
a, b, x are dumped successfully, but y dumped nothing. LOG() method has the same result. what's wrong?
|
|
|
|
| Re: Problem DUMP INT64_MIN [message #62039 is a reply to message #62038] |
Fri, 24 July 2026 12:22   |
 |
koldo
Messages: 3461 Registered: August 2008
|
Senior Veteran |
|
|
Hi DiaosLu
The reason of that is that in Core/Defs.h, INT64_NULL = INT64_MIN, so an empty String is printed.
b does not have the same problem, because the int32 is considered a long, and before printing it is casted to int64.
Best regards
IƱaki
[Updated on: Fri, 24 July 2026 12:26] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Jul 30 23:03:19 GMT+2 2026
Total time taken to generate the page: 0.00652 seconds
|