clang-tidy-14: suppress some further warnings using asserts (removed remaining NOLINT)

This commit is contained in:
gitlost 2022-04-02 10:43:45 +01:00
parent 8950f10c00
commit 69876619dd
2 changed files with 4 additions and 1 deletions

View file

@ -45,6 +45,7 @@
* https://github.com/fahickman/r128/blob/master/r128.h
* "R128 is released into the public domain. See LICENSE for details." LICENSE is The Unlicense.
*/
#include <assert.h>
#include <stdio.h>
#ifdef _MSC_VER
#include <malloc.h>
@ -197,6 +198,7 @@ INTERNAL uint64_t large_div_u64(large_int *t, uint64_t v) {
/* Compute qhat1 estimate */
assert(vn1 != 0); /* Suppress clang-tidy-14 clang-analyzer-core.DivideZero */
qhat1 = tnhi / vn1; /* Divide first digit of v into first 2 digits of t */
rhat = tnhi % vn1;