util/miscmath: change assume to assert in ASSUME_FINITE for now

On some toolchains isfinite compiles to a function call and trips a
-Wassume warning
This commit is contained in:
Andrei Alexeyev 2023-09-28 14:59:06 +02:00
parent 8f8ca2beca
commit 4e6929d605
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -105,7 +105,7 @@ uint64_t umuldiv64(uint64_t x, uint64_t multiplier, uint64_t divisor);
#define ASSUME_FINITE(x) ({ \
auto _temp = (x); \
assume(isfinite(_temp)) ; \
assert(isfinite(_temp)) ; \
_temp; \
})