Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug or dumb coding mistake?
#1
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.
Reply
#2
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]
Reply
#3
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.
Reply
#4
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.
Reply
#5
Long in FB is the same size as 'long' in C on the target platform.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)