mrubyを超漢字で動作させる
Revisão | 6b67590fdab696ef0aff2cb283be2bddc80a3ed4 (tree) |
---|---|
Hora | 2015-10-21 18:17:58 |
Autor | furunkel <julian@linu...> |
Commiter | furunkel |
Merge branch 'master' of https://github.com/mruby/mruby into gc_cleanup
@@ -90,11 +90,6 @@ fmt_u(uint32_t x, char *s) | ||
90 | 90 | typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; |
91 | 91 | #endif |
92 | 92 | |
93 | -#if ((defined(__CYGWIN__) || defined(__NetBSD__) || defined(mips)) && !defined(__linux__)) || defined(__android__) | |
94 | -#undef frexpl | |
95 | -#define frexpl frexp | |
96 | -#endif | |
97 | - | |
98 | 93 | static int |
99 | 94 | fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t) |
100 | 95 | { |
@@ -127,7 +122,7 @@ fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t) | ||
127 | 122 | return MAX(w, 3+pl); |
128 | 123 | } |
129 | 124 | |
130 | - y = frexpl(y, &e2) * 2; | |
125 | + y = frexp((double)y, &e2) * 2; | |
131 | 126 | if (y) e2--; |
132 | 127 | |
133 | 128 | if ((t|32)=='a') { |