lpcware

int64 problem

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by mspahr on Thu Mar 13 14:04:27 MST 2014
I am using LPCXpresso V5.2.6

int64 is not working correctly.
int64var=3352*3352*3352*3352;
I get a warning integer overflow
The answer is 126,245,538,697,216
int 64 is good to 9,223,372,036,854,775,807.
I also tried
int32vara=3352*3352;
int32varb=3352*3352;
int64var=int32vara*int32varb;
got -730001408

Outcomes