]> The Tcpdump Group git mirrors - libpcap/commit
optimize: remove unnecessary tests.
authorGuy Harris <[email protected]>
Wed, 17 Jun 2020 20:28:39 +0000 (13:28 -0700)
committerGuy Harris <[email protected]>
Wed, 17 Jun 2020 20:28:39 +0000 (13:28 -0700)
commit6a613e03c2aafe1e16a9efbc9f89e6d0f7a28155
tree8181df82049c3e353726974dcb6429d4899f1a01
parent01afa17bf96ff719931c4f7dc644381132e72456
optimize: remove unnecessary tests.

We never insert more than 2 extra jumps in convert_code_r(); make the
count of extra jumps a u_char, so that no compiler doing insufficiently
careful data flow analysis thinks ZOMG IT CAN GET BIGGER THAN
256!!!!!!111ONEZ111!!!! and emits a bogus warning, and remove checks
whether it can get > 256.

This should address GitHub issue #944 without upsetting MSVC.
optimize.c