Converting Variables

BlitzMax Forums/BlitzMax Programming/Converting Variables

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.

I use INTs everywhere, but I like to save my variables as BYTEs whenever I can (assuming that the integer will never be above 255) to save space.

So I am assuming that:
Local dummy:int = ReadByte(filein)
'later in the code...
WriteByte(dummy,fileout)

...is this successfully converting the BYTE to an INT upon loading and saving.

I guess what I would like is reassurance that this isn't going to cause any long-term problems (mem leaks, slowdowns, etc.)