Page 1 of 1

Problem with const long long

Posted: Mon Aug 29, 2005 3:40 pm
by StatujaLeha
Hi all! I have a little problem with const long long. There is in my code next lines:

Code: Select all

typedef unsigned long long int UInt64;
..............
if(Result >= UInt64(0xfffffffffffffff)/((j - 1)*z + i))
I get Compile Error everytime:
03879793_24.c:53: integer constant out of range
Could anyone explain me it?

Posted: Mon Aug 29, 2005 3:58 pm
by Larry
Use "LL".

Posted: Mon Aug 29, 2005 5:22 pm
by StatujaLeha
Larry wrote:Use "LL".
What is "LL"?

Code: Select all

typedef unsigned long long UInt64;
..............
if(Result >= UInt64(0xfffffffffffffff)/((j - 1)*z + i))
Is it correct?

Posted: Mon Aug 29, 2005 5:32 pm
by StatujaLeha
Thank you, Larry. I have understood.