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:
parent
8f8ca2beca
commit
4e6929d605
1 changed files with 1 additions and 1 deletions
|
@ -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; \
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue