diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 19:41:12 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 19:41:12 +0000 |
commit | fb574472a72e8869f7a33e6d64520645c272db3d (patch) | |
tree | 4a2f49ae7101bd0930fba74cda8e561c0479f11a | |
parent | 243c8f8b1d8c5070fb8f01b8b7f1b4c9ce9a1a14 (diff) | |
download | ruby-fb574472a72e8869f7a33e6d64520645c272db3d.tar.gz |
* 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_5@12972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | sprintf.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Thu Aug 16 04:40:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * sprintf.c (rb_f_sprintf): sign bit extension should not be done + if FPLUS flag is specified. [ruby-list:39224] + Thu Aug 16 04:39:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * array.c (rb_ary_initialize): should call rb_ary_modify() first. @@ -12202,7 +12207,7 @@ Wed Feb 18 17:18:01 2004 WATANABE Hirofumi <eban@ruby-lang.org> Wed Feb 18 10:40:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org> * sprintf.c (rb_f_sprintf): do not prepend dots for negative - numbers if FZERO is specified. [ruby-dev:39218] + numbers if FZERO is specified. [ruby-list:39218] Tue Feb 17 23:40:34 2004 Guy Decoux <ts@moulon.inra.fr> @@ -693,7 +693,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'; @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2007-08-16" #define RUBY_VERSION_CODE 185 #define RUBY_RELEASE_CODE 20070816 -#define RUBY_PATCHLEVEL 64 +#define RUBY_PATCHLEVEL 65 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |