Bug 143 - EQUs are unsigned, what to do with negatives?
Summary: EQUs are unsigned, what to do with negatives?
Alias: None
Product: RMAC
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC Linux
: Normal normal
Assignee: Shamus Hammons
Depends on:
Reported: 2020-01-03 03:21 CST by ggn
Modified: 2020-01-03 03:21 CST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description ggn 2020-01-03 03:21:54 CST
To be more clear, everything is fine when they are expanded, but then people can do stuff like:

SCR equ -8

print ""
if SCR<0
  print "MEOW!!!!!!!!!"

This will never evaluate true because the expression evaluator will do (u64)-8<(u64)0. So, perhaps for comparisons we should cast the values to signed?