Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Internal Types
#2
britlion Wrote:This issues a warning: "Test.bas:22: warning: Redundant operation ABS for unsigned value"

Surely if a Byte is signed, then (Byte-Byte) is signed as well?
The compiler is right. At line 22, you have:
Code:
... ABS (yCoords(i) < yCoords(j)) <2 THEN
The ABS argument is a boolean value, which maps to an unsigned byte. Thus unsigned. ;-) I guess you have a bug here, and what you meant was a subtraction, isn't it?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)