Posts: 357
Threads: 118
Joined: Oct 2004
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?
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Posts: 1,080
Threads: 87
Joined: Feb 2002
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?
/post]
Posts: 357
Threads: 118
Joined: Oct 2004
Have to use longint, ok.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Posts: 3,616
Threads: 287
Joined: Jan 2003
Yeah, that one threw me when I was first using FB straight from QB. LONG is the same as INTEGER in FB - 32 bits.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 1,439
Threads: 15
Joined: Apr 2003
Long in FB is the same size as 'long' in C on the target platform.