diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-13 15:38:48 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-13 15:38:48 +0000 |
commit | 3e6f0e6a20ee36c09e1078ef2e64d22c93a6393c (patch) | |
tree | 075f6182dbf730e0c188f22931d2063fe0ab609a | |
parent | 4122a1356058bc4df1073713b8f43a75a8cca51a (diff) | |
download | ruby-3e6f0e6a20ee36c09e1078ef2e64d22c93a6393c.tar.gz |
* numeric.c (int_round): should not return false, but self.
[ruby-dev:31212]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | numeric.c | 2 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Sat Jul 14 00:34:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * numeric.c (int_round): should not return false, but self. + [ruby-dev:31212] + Fri Jul 13 18:31:27 2007 Koichi Sasada <ko1@atdot.net> * include/ruby/intern.h: remove unused function declarations. @@ -2900,7 +2900,7 @@ int_round(int argc, VALUE* argv, VALUE num) VALUE n, f, h, r; int ndigits; - if (argc == 0) return 0; + if (argc == 0) return num; rb_scan_args(argc, argv, "1", &n); ndigits = NUM2INT(n); if (ndigits > 0) { @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-07-13" +#define RUBY_RELEASE_DATE "2007-07-14" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070713 +#define RUBY_RELEASE_CODE 20070714 #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 13 +#define RUBY_RELEASE_DAY 14 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |