diff options
-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 @@ +Tue Nov 13 02:57:04 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp> + + * numeric.c (flo_divmod): round to the nearest integer. + [ ruby-Bugs-14540 ] + Tue Nov 13 00:36:16 2007 Shugo Maeda <shugo@ruby-lang.org> * test/ruby/test_settracefunc.rb: fixed tests for set_trace_func. @@ -715,7 +715,7 @@ flo_divmod(VALUE x, VALUE y) } flodivmod(RFLOAT(x)->value, fy, &div, &mod); if (FIXABLE(div)) { - val = div; + val = round(div); a = LONG2FIX(val); } else { @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-11-12" +#define RUBY_RELEASE_DATE "2007-11-13" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20071112 +#define RUBY_RELEASE_CODE 20071113 #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 11 -#define RUBY_RELEASE_DAY 12 +#define RUBY_RELEASE_DAY 13 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |