From 30aa46db0b3983648cb9a5d2cc330acad022f165 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 14 Mar 2007 05:39:00 +0000 Subject: [PATCH] * ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now treated as ("-0.31") not as ("0.31"). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/bigdecimal/bigdecimal.c | 2 +- version.h | 8 +++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee130a2411..fb63119d73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 14 12:30:00 2007 Shigeo Kobayashi + + * ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now + treated as ("-0.31") not as ("0.31"). + Tue Mar 13 19:04:30 2007 Keiju Ishitsuka * lib/sync.rb: support for ruby 1.9(YARV) thread model. diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index efbf29f92d..a4b769e8cf 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -3921,7 +3921,7 @@ VpCtoV(Real *a, const char *int_chr, U_LONG ni, const char *frac, U_LONG nf, con /* get integer part */ i = 0; sign = 1; - if(ni > 0) { + if(ni >= 0) { if(int_chr[0] == '-') { sign = -1; ++i; diff --git a/version.h b/version.h index f7165f919e..4cf63ff782 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-03-13" +#define RUBY_RELEASE_DATE "2007-03-14" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070313 +#define RUBY_RELEASE_CODE 20070314 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,11 +9,9 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 13 +#define RUBY_RELEASE_DAY 14 -#ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_release_date[]; RUBY_EXTERN const char ruby_platform[]; RUBY_EXTERN const int ruby_patchlevel; -#endif