mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
[BZ #22593] Fix nextafter and nexttoward declaration
These functions set errno and thus the const attribute was wrong. [BZ #22593] * math/bits/mathcalls.h (nextafter): Remove const. (nexttoward): Likewise.
This commit is contained in:
parent
8df5d34720
commit
4e0dca54e9
@ -1,3 +1,9 @@
|
||||
2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
[BZ #22593]
|
||||
* math/bits/mathcalls.h (nextafter): Remove const.
|
||||
(nexttoward): Likewise.
|
||||
|
||||
2017-12-12 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* configure.ac (--with-fp): Remove configure option.
|
||||
|
@ -256,9 +256,9 @@ __MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp));
|
||||
__MATHCALL (rint,, (_Mdouble_ __x));
|
||||
|
||||
/* Return X + epsilon if X < Y, X - epsilon if X > Y. */
|
||||
__MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
|
||||
__MATHCALL (nextafter,, (_Mdouble_ __x, _Mdouble_ __y));
|
||||
# if defined __USE_ISOC99 && !defined __LDBL_COMPAT && !__MATH_DECLARING_FLOATN
|
||||
__MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__));
|
||||
__MATHCALL (nexttoward,, (_Mdouble_ __x, long double __y));
|
||||
# endif
|
||||
|
||||
# if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN
|
||||
|
Loading…
Reference in New Issue
Block a user