From 2adf19d6c4febaa497c28dfc5fe0942e540dd883 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 14 Jul 2007 19:42:25 +0000 Subject: [PATCH] * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ bignum.c | 1 + version.h | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29bc9ca545..34dfdb2b89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Jul 15 04:42:20 2007 Nobuyoshi Nakada + + * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225] + Sat Jul 14 22:49:30 2007 Yukihiro Matsumoto * numeric.c (fix_pow): integer power calculation: 0**n => 0, diff --git a/bignum.c b/bignum.c index d7ba14174c..51a5a43d85 100644 --- a/bignum.c +++ b/bignum.c @@ -70,6 +70,7 @@ get2comp(VALUE x) BDIGIT *ds = BDIGITS(x); BDIGIT_DBL num; + if (!i) return; while (i--) ds[i] = ~ds[i]; i = 0; num = 1; do { diff --git a/version.h b/version.h index a6b68f57e1..84ed29ff43 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-07-14" +#define RUBY_RELEASE_DATE "2007-07-15" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070714 +#define RUBY_RELEASE_CODE 20070715 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 7 -#define RUBY_RELEASE_DAY 14 +#define RUBY_RELEASE_DAY 15 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];