Opened 16 years ago
Closed 16 years ago
#242 closed defect (fixed)
problem with negative constants
| Reported by: | Stephen Siegel | Owned by: | bperry |
|---|---|---|---|
| Priority: | major | Milestone: | Release 1.0 |
| Component: | front | Version: | 1.0 |
| Keywords: | constant front negative | Cc: |
Description
Negative constants are not being recognized, at least in some situations, using #define. Checking in example in directory constant
Change History (3)
comment:1 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 16 years ago
| Status: | assigned → accepted |
|---|
comment:3 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

solved by checking for unary expressions when processing constant expressions. if the unary expression type is MINUS and the operand is either an int or a real, we add a "-" to the constant value.