Blitz changes var types in userlibs!?

Blitz3D Forums/Blitz3D Userlibs/Blitz changes var types in userlibs!?

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.

Okay, maybe Blitz is changing the size of mantissa or something, but why should this affect my integer vars?

The only reason I could see is a statement by PowerBasic, that NPU registers are used to store vars temporarily for faster access. Maybe this causes a side effect to my integers too?!

@Panno: Wow, you're right, 16 bit integers work! But since I need at least 32 bit it isn't an option for me.

Btw, I discovered that only constants with value = 1 are displayed as "10", every other constant value stays the same. Well, I tried this:

%c = 1
MsgBox Str$(%c) ' Displays "10"
For i = 1 To %c
  MsgBox "Hi there"
Next

The MsgBox shows up only once.

%c = 1
MsgBox Str$(%c) ' Displays "10"
For i = 1 To Val(Str$(%c))
  MsgBox "Hi there"
Next

Now the MsgBox will be displayed ten times. Seems that Str$() causes the problem.

But all this is still mysterious to me. :(