Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bug or missunderstood?
#6
Haplo Wrote:Thanks, I just update to s1968 Smile

I thought that if I declare "valor" as uinteger previously, would be enough.

I used to declare the variables according their range of values, but this behavior disconcert me. By now, I will change all the ubyte variables to uinteger, avoiding the problem by this way.
The range of valor is ok. The range of the others is not. Ok. This is something we need to discuss. Maybe is better to use the standard behaviour. Basically, in ZXBasic a * b is expanded to Uinteger *after* the multiplication. Other compilers expands first. But this is more expensive...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)