summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sprintf.c b/sprintf.c
index 643314dc37..62731a5f26 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -662,7 +662,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
val = rb_big_clone(val);
rb_big_2comp(val);
}
- tmp1 = tmp = rb_big2str0(val, base, RBIGNUM_SIGN(val));
+ tmp1 = tmp = rb_big2str0(val, base, Qtrue);
s = RSTRING_PTR(tmp);
if (*s == '-') {
if (base == 10) {