#71 Wrong associativity of arithmetic operators

v5.2
closed-fixed
None
2
2014-08-31
2013-09-12
No

The associativity of arithmetic operators is wrongly right-to-left, not left-to-right, so an arithmetic expression in three or more unparenthisized operands of co-precedent operators is wrongly calculated, e.g. 2-21-21 as 2 instead of -40.

This major bug has lurked since at least coan's precedecessor sunifdef, v2.0, 2006, when arithmetic operators were added to boolean.

Discussion

  • Mike Kinghan

    Mike Kinghan - 2014-08-31
    • status: open --> closed-fixed
     
  • Mike Kinghan

    Mike Kinghan - 2014-08-31

    Closed in v6.0

     

Log in to post a comment.