Rewrite the it_cmp() function to use the common check bigger than, check
authorclaudio <claudio@openbsd.org>
Thu, 22 Feb 2024 13:17:18 +0000 (13:17 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 22 Feb 2024 13:17:18 +0000 (13:17 +0000)
commit76af8930adea681ce324d24d9d9d169c274e84b0
tree1825016a7e1fefe7423a4cb05b7bf64ecc1e02c9
parent6bdbea77cb4cf3c856d89a677129a298377e35fd
Rewrite the it_cmp() function to use the common check bigger than, check
smaller than logic.

There was a bug in this code because of a badly placed ) which I only
noticed after rewriting the function since I assumed that C integer
promotion is playing tricks with us.

OK mpi@
usr.bin/ctfconv/parse.c