Program fails with debug off, works with it on?

BlitzMax Forums/BlitzMax Programming/Program fails with debug off, works with it on?

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 guess I could use the ?Debug compiler directive and have two different pieces of code for each situation.

My code is actually a lot bigger, but this piece that is not working right I cut out and made it look like it's stand-alone. I have no idea what could cause the problem. It does seem like the expression is not evaluated right, or, that the assembler code generated is using the wrong kind of jump instruction or jumps to the wrong label, causing it to enter the wrong area.