UBsan fix for RNG
Compare changes
+ 1
− 1
@@ -107,7 +107,7 @@ INLINE static double inl_erand48(uint16_t xsubi[3]) {
Add an explicit cast to uint32_t in inl_erand48() to silence a runtime error from the undefined behaviour sanitizer.
Fixes #606 (closed).
I am getting fed up with UBsan reporting this continuously and hence generating too much noise.