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 bperry, 16 years ago

Owner: changed from ywei to bperry
Status: newassigned

comment:2 by bperry, 16 years ago

Status: assignedaccepted

comment:3 by bperry, 16 years ago

Resolution: fixed
Status: acceptedclosed

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.

Note: See TracTickets for help on using tickets.