Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/xlint/lint1



Module Name:    src
Committed By:   rillig
Date:           Wed Nov 18 05:24:33 UTC 2026

Modified Files:
        src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: fix integer constraints for division

In the expression 'a / b' with b > 0, lint wrongly assumed the result
would have the same bits cleared as a.

In the expression 'a % b', the resulting constraints were wrong for
negative b.


To generate a diff of this commit:
cvs rdiff -u -r1.718 -r1.719 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index