diff options
author | Nick Clifton <nickc@redhat.com> | 2015-03-11 11:14:38 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-03-11 11:14:38 +0000 |
commit | 58c9102ea2f70f1cc1745b8d4d72cb0227df6148 (patch) | |
tree | 0cb506fd72b806ddc8f523b17cf9f7e7583ca3b1 /newlib | |
parent | 2a6db5083cae9c7f54a72b693bc9e7984d513483 (diff) | |
download | newlib-58c9102ea2f70f1cc1745b8d4d72cb0227df6148.zip newlib-58c9102ea2f70f1cc1745b8d4d72cb0227df6148.tar.gz newlib-58c9102ea2f70f1cc1745b8d4d72cb0227df6148.tar.bz2 |
Fix a build problem running the newlib testsuite on targets that only have 32-bit doubles.
* testsuite/newlib.stdio/swprintf.c (main): Change size of value
used to initialise 'val' variable so that it will compile on
targets with 32-bit doubles.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/testsuite/newlib.stdio/swprintf.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index ecaed14..2d97be0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2015-03-11 Nick Clifton <nickc@redhat.com> + + * testsuite/newlib.stdio/swprintf.c (main): Change size of value + used to initialise 'val' variable so that it will compile on + targets with 32-bit doubles. + 2015-03-05 Craig Howland <howland@LGSInnovations.com> * libc/include/stdio.h (FILE): Protect typedef from redefinition. diff --git a/newlib/testsuite/newlib.stdio/swprintf.c b/newlib/testsuite/newlib.stdio/swprintf.c index b925da4..c20bf89 100644 --- a/newlib/testsuite/newlib.stdio/swprintf.c +++ b/newlib/testsuite/newlib.stdio/swprintf.c @@ -18,7 +18,7 @@ int main() #else char cbuf[512]; wchar_t wcbuf[512], wcbuf2[512]; - double val = 1E+308; + double val = 1E+30; snprintf(cbuf, 512, "%.*f", 3, val); swprintf(wcbuf, 512, L"%.*f", 3, val); mbstowcs(wcbuf2, cbuf, 512); |