• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Revisão6b67590fdab696ef0aff2cb283be2bddc80a3ed4 (tree)
Hora2015-10-21 18:17:58
Autorfurunkel <julian@linu...>
Commiterfurunkel

Mensagem de Log

Merge branch 'master' of https://github.com/mruby/mruby into gc_cleanup

Mudança Sumário

Diff

--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -90,11 +90,6 @@ fmt_u(uint32_t x, char *s)
9090 typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)];
9191 #endif
9292
93-#if ((defined(__CYGWIN__) || defined(__NetBSD__) || defined(mips)) && !defined(__linux__)) || defined(__android__)
94-#undef frexpl
95-#define frexpl frexp
96-#endif
97-
9893 static int
9994 fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t)
10095 {
@@ -127,7 +122,7 @@ fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t)
127122 return MAX(w, 3+pl);
128123 }
129124
130- y = frexpl(y, &e2) * 2;
125+ y = frexp((double)y, &e2) * 2;
131126 if (y) e2--;
132127
133128 if ((t|32)=='a') {