]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
add integer to integer math
authorAlan T. DeKok <aland@freeradius.org>
Thu, 18 Nov 2021 17:59:08 +0000 (12:59 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 18 Nov 2021 17:59:08 +0000 (12:59 -0500)
commit22ef2e7cde5fe64b58f824db6fa672c858d61d31
tree631b82cf140e5e69386f56367b9ee3ff2d8dbd35
parenta48adeb71a5c2b09c73137b12fbebd6f7eda2454
add integer to integer math

with upcasting of intermediate results to the largest integer
type which can hold the value.  And then finally cast to the
final type when we have the result.
src/lib/util/calc.c
src/tests/unit/calc.txt