Menu ▾ ▴

#250 Casts are considered as arithmetic operations

closed-fixed
None
2024-10-01
2013-11-06
No

Code like "(UINT)-1" ends up "(UINT) - 1" which makes me think AStyle misses the fact this is a cast and not an arithmetic operation.

UINT is declared as "typedef unsigned int UINT;" in some Windows header in that case.

Discussion

  • Rokas Kupstys

    Rokas Kupstys - 2020-06-30

    I second this. Using --pad-oper is very complicated with this behavior present.

     
  • André Simon

    André Simon - 2024-09-11
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2024-10-01
    • status: open-accepted --> closed-fixed
     
  • André Simon

    André Simon - 2024-10-01

    Fixed in 3.6.3.

     

Log in to post a comment.