summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-29 03:35:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-29 03:35:31 +0000
commitf20f30fc07890b6668daf79494b2e1a875cb7486 (patch)
treec5725d69cf60e2fa7da150f90f0b8701458d8fd5 /ext/bigdecimal
parenta236e7348bf7788791980687b174e2d562baeb76 (diff)
* ext/bigdecimal/bigdecimal.c (VPrint, VpToString): fix format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index a251a8e..0d25a60 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);
}