forked from OSchip/llvm-project
[libc][Obvious] Fix nextafter* implementation.
It broke when FPBits was converted to a union.
This commit is contained in:
parent
a285bdb56f
commit
31ed45d9cf
|
@ -167,7 +167,7 @@ static inline T nextafter(T from, T to) {
|
|||
--intVal;
|
||||
}
|
||||
} else {
|
||||
intVal = (UIntType(toBits) & signMask) + UIntType(1);
|
||||
intVal = (toBits.uintval() & signMask) + UIntType(1);
|
||||
}
|
||||
|
||||
return *reinterpret_cast<T *>(&intVal);
|
||||
|
|
Loading…
Reference in New Issue