diff --git a/libc/utils/FPUtil/ManipulationFunctions.h b/libc/utils/FPUtil/ManipulationFunctions.h index ef8a3775df7b..f0e5c8faa0a4 100644 --- a/libc/utils/FPUtil/ManipulationFunctions.h +++ b/libc/utils/FPUtil/ManipulationFunctions.h @@ -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(&intVal);