]> Kevux Git Server - fll/commit
Cleanup: Use signed type and cast to unsigned.
authorKevin Day <thekevinday@gmail.com>
Sat, 19 Feb 2022 04:59:24 +0000 (22:59 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 19 Feb 2022 04:59:24 +0000 (22:59 -0600)
commitefdc9f6726d94e2805f3fb6a580f62f3b1bcc813
treedd0cdedc0e9bae2afa57fd8a1615e26e9e71c86a
parent6283ef1ed0d09d4183a9bb0df770aa61ddf58c0a
Cleanup: Use signed type and cast to unsigned.

This situation is exposed by a warning from the CLang compiler.
The warning makes sense, so the code is changed to a signed type and then cast.

The negative value should never make it to the assignment if the preceding if condition properly catches it as intended.
level_3/controller/c/rule/private-rule.c