mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
4122a13560
commit
3e6f0e6a20
3 changed files with 9 additions and 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[];
|
||||
|
|
Loading…
Reference in a new issue