mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
bigdecimal.c: fix format specifier
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): fix format specifier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d97cd39f42
commit
13527efd59
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Aug 6 00:40:54 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): fix format specifier.
|
||||
|
||||
Mon Aug 6 00:39:24 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (NUM2ULONG): optimize by inline as well as
|
||||
|
|
|
@ -2704,7 +2704,7 @@ get_vp_value:
|
|||
expo = VpExponent10(vx);
|
||||
if (expo < 0 || expo >= 3) {
|
||||
char buf[16];
|
||||
snprintf(buf, 16, "1E%ld", -expo);
|
||||
snprintf(buf, 16, "1E%"PRIdVALUE, -expo);
|
||||
x = BigDecimal_mult2(x, ToValue(VpCreateRbObject(1, buf)), vn);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue