Skip to content

Commit 37b7e91

Browse files
author
Chet Ramey
committed
Bash-5.2 patch 33: fix autoconf test for broken strtold
1 parent 142bbdd commit 37b7e91

7 files changed

+24762
-4
lines changed

builtins/printf.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ printf_builtin (list)
709709
floatmax_t p;
710710

711711
p = getfloatmax ();
712-
f = mklong (start, "L", 1);
712+
f = mklong (start, FLOATMAX_CONV, USE_LONG_DOUBLE);
713713
PF (f, p);
714714
}
715715
else /* posixly_correct */

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -15676,7 +15676,7 @@ else $as_nop
1567615676
int
1567715677
main (void)
1567815678
{
15679-
long double r; char *foo, bar; r = strtold(foo, &bar);
15679+
long double r; char *foo, *bar; r = strtold(foo, &bar);
1568015680

1568115681
;
1568215682
return 0;

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ AC_CHECK_DECLS([strtold], [
885885
[AC_COMPILE_IFELSE(
886886
[AC_LANG_PROGRAM(
887887
[[#include <stdlib.h>]],
888-
[[long double r; char *foo, bar; r = strtold(foo, &bar);]]
888+
[[long double r; char *foo, *bar; r = strtold(foo, &bar);]]
889889
)],
890890
[bash_cv_strtold_broken=no],[bash_cv_strtold_broken=yes])
891891
]

0 commit comments

Comments
 (0)