& what is wrong here?

BlitzMax Forums/BlitzMax Programming/& what is wrong here?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What do you expect the output to be?
16777216
33554432
50331648
67108864
83886080
100663296
117440512
134217728
150994944
167772160
184549376
201326592
Why is this wrong. The first time i&111111111111111111111111 is 0 is when i =1000000000000000000000000

Edit Oh stupid me point seen, I should have let it run first time
veri:Long=16777215:Long
fs2:Long=5000000000:Long
For i:Long=1 To fs2
  If (i & veri) = 0
    Print i
  EndIf
Next
Print
Print i
End

5000000000 isnt a long (it is truncated to the default Int). 5000000000:long is a long
(Which could be counted as a bug)