Qbasicnews.com

Full Version: Bug or dumb coding mistake?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
dim a as long
a = &HFFFFFFFF '32 bits, works fine
a = &HFFFFFFFFFFFFFFFF '64 bits, implicit conversion

Am I doing something wrong or is this a bug?
Quote:Syntax:
dim variable as Long

Description:
Depending on the platform, same as Integer or Longint. A 32-bit or 64-bit signed whole-number data type.

Could it be because of the platform?
Have to use longint, ok.
Yeah, that one threw me when I was first using FB straight from QB. LONG is the same as INTEGER in FB - 32 bits.
Long in FB is the same size as 'long' in C on the target platform.