diff options
| author | furunkel <[email protected]> | 2015-10-21 11:17:58 +0200 |
|---|---|---|
| committer | furunkel <[email protected]> | 2015-10-21 11:17:58 +0200 |
| commit | 6b67590fdab696ef0aff2cb283be2bddc80a3ed4 (patch) | |
| tree | 419a9b9b727d2ca8d8225b18dfde08b616c2fdb5 /src | |
| parent | 0d8012f5138a7156b9b157e9e8c15809778c651a (diff) | |
| parent | 68ba386213615459903721870cbe400990dc8311 (diff) | |
| download | mruby-6b67590fdab696ef0aff2cb283be2bddc80a3ed4.tar.gz mruby-6b67590fdab696ef0aff2cb283be2bddc80a3ed4.zip | |
Merge branch 'master' of https://github.com/mruby/mruby into gc_cleanup
Diffstat (limited to 'src')
| -rw-r--r-- | src/fmt_fp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c index b27ebd6e9..0df0bb5cc 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -90,11 +90,6 @@ fmt_u(uint32_t x, char *s) typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; #endif -#if ((defined(__CYGWIN__) || defined(__NetBSD__) || defined(mips)) && !defined(__linux__)) || defined(__android__) -#undef frexpl -#define frexpl frexp -#endif - static int fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t) { @@ -127,7 +122,7 @@ fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t) return MAX(w, 3+pl); } - y = frexpl(y, &e2) * 2; + y = frexp((double)y, &e2) * 2; if (y) e2--; if ((t|32)=='a') { |
