[libc][Obvious] Fix nextafter* implementation.

It broke when FPBits was converted to a union.
This commit is contained in:
Siva Chandra Reddy 2021-04-13 11:35:41 -07:00
parent a285bdb56f
commit 31ed45d9cf
1 changed files with 1 additions and 1 deletions

View File

@ -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);