]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 65448] intcmp: Compare values instead of magnitudes
authorJouke Witteveen <j.witteveen@gmail.com>
Sun, 24 Mar 2024 18:08:59 +0000 (14:08 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 24 Mar 2024 18:08:59 +0000 (14:08 -0400)
commitbfbf169b63dcfdc734b3c3187c903e361d702b1a
treee9b46aa909842c4d39daec424e2563b2adbfb499
parent21a538ce8f4daabc12f542c91e7da5d2d7b870ca
[SV 65448] intcmp: Compare values instead of magnitudes

* src/function.c (func_intcmp): Reverse comparison direction when
both arguments are negative.
* tests/scripts/functions/intcmp: Add tests and remove useless ones.
src/function.c
tests/scripts/functions/intcmp