i have a cpp file say xyz.cpp
, which contains long constants. now i need to change long constants to long long.
ex
long a=0x00000001
to
long long a=0x0000000000000001
for future purpose. ( i use gcc compiler ) But when i do so, i got "integer value is to large to hold the long value" error. when browsed over internet, i got a suggestion like use,
long long a=0x0000000000000001ULL .
that worked fine. but the problem is i ve a jar file, that need to convert this .cpp
file to .java
. when it try to convert a .java
file from .cpp
file, it does not recognizes ULL.
now my question is
1, to this scenerio, is this anyway for my gcc compiler to make accept long long values, instead of adding ULL @ the end 2, or suggest me what should i do in .java file to accept that long long value (ULL) ( i know java has only long value that can hold long long value )
thanks in advance :)