mirror of git://sourceware.org/git/glibc.git
math: Fix UB in ldbl-128 nearbyintl
UBSAN: Undefined behaviour in ../sysdeps/ieee754/float128/../ldbl-128/s_nearbyintl.c:61:4 left shift of 1 by 63 cannot be represented in type 'long int'
This commit is contained in:
parent
1d60cac326
commit
9f65638ed1
|
@ -42,7 +42,8 @@ __nearbyintl (_Float128 x)
|
|||
L(-5.19229685853482762853049632922009600E+33) /* 0xC06F000000000000, 0 */
|
||||
};
|
||||
fenv_t env;
|
||||
int64_t i0, j0, sx;
|
||||
int64_t i0, j0;
|
||||
uint64_t sx;
|
||||
uint64_t i1 __attribute__ ((unused));
|
||||
_Float128 w, t;
|
||||
GET_LDOUBLE_WORDS64 (i0, i1, x);
|
||||
|
|
Loading…
Reference in New Issue