I have a variable of type long (primitive, so range is 2^63) called size.
I have the following code that is giving me an error:
I'm getting the error "The literal 1099511627776 of type int is out of range". So it seems that when comparing size with 1099511627776, it's comparing data type long with an integer.
How do I overcome this problem?
I tried placing the value I'm trying to compare into another long variable, but I can't assign the value 1099511627776 to it because I get the same error.
Thanks for any guidance,