summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/bigdecimal/bigdecimal.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d6ae3228d88..5f17cb6f51e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep 29 12:35:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VPrint, VpToString): fix format.
+
Wed Sep 29 12:31:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/known_classes.rb (RDoc::KNOWN_CLASSES): add Encoding.
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index a251a8e9dec..0d25a60337d 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -3880,7 +3880,7 @@ VPrint(FILE *fp, const char *cntl_chr, Real *a)
m /= 10;
}
}
- nc += fprintf(fp, "E%"PRIdVALUE, VpExponent10(a));
+ nc += fprintf(fp, "E%"PRIdSIZE, VpExponent10(a));
} else {
nc += fprintf(fp, "0.0");
}
@@ -4077,7 +4077,7 @@ VpToString(Real *a, char *psz, size_t fFmt, int fPlus)
shift /= 10;
}
while(psz[-1]=='0') *(--psz) = 0;
- sprintf(psz, "E%"PRIdVALUE, ex);
+ sprintf(psz, "E%"PRIdSIZE, ex);
if(fFmt) VpFormatSt(pszSav, fFmt);
}