--- - branch: MAIN date: Wed Jul 12 19:34:01 UTC 2023 files: - new: '1.52' old: '1.51' path: src/usr.bin/xlint/lint1/debug.c pathrev: src/usr.bin/xlint/lint1/debug.c@1.52 type: modified - new: '1.561' old: '1.560' path: src/usr.bin/xlint/lint1/tree.c pathrev: src/usr.bin/xlint/lint1/tree.c@1.561 type: modified id: 20230712T193401Z.d261fff1281a30d68d1e9a593877c32b6f9032ff log: | lint: clean up handling of __real__ and __imag__ These two operatos are not binary, therefore they don't need a right operand. The questionable operands were a copy-and-paste mistake, as the code was taken from the ++ and -- operands (tree.c 1.46 from 2008-04-25). The ++ and -- operands aren't binary either, but since lint represents address calculations in their premultiplied form, the expression ptr++ contains a hidden right operand specifying the number of bytes by which to increment the pointer. Creating an integer-constant-expression node with type 'long double' didn't make sense either. Luckily, these expressions are only built but not analyzed any further. module: src subject: 'CVS commit: src/usr.bin/xlint/lint1' unixtime: '1689190441' user: rillig