diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-22 00:50:32 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-22 00:50:32 +0000 |
commit | 92a911811545218e64023c68561cfa32ba38639f (patch) | |
tree | 9695048ca75d0e05b42f4ccb4dac5d0822a0af12 /sprintf.c | |
parent | 7a62a9f53cec1f9ba1b9c79b4373fd11b44d7732 (diff) |
* sprintf.c (rb_f_sprintf): sign bit extension should not be done
if FPLUS flag is specified. [ruby-list:39224]
numbers if FZERO is specified. [ruby-list:39218]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -677,7 +677,7 @@ rb_f_sprintf(argc, argv) else { char c; - if (bignum && !RBIGNUM(val)->sign) + if (!sign && bignum && !RBIGNUM(val)->sign) c = sign_bits(base, p); else c = '0'; |