mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): revert a part of
r23645, which was not a bug fix. [ruby-dev:39474] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@25799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d77a6422f6
commit
3e488e98ff
3 changed files with 15 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Nov 16 19:28:23 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): revert a part of
|
||||||
|
r23645, which was not a bug fix. [ruby-dev:39474]
|
||||||
|
|
||||||
Fri Sep 11 11:56:53 2009 Akinori MUSHA <knu@iDaemons.org>
|
Fri Sep 11 11:56:53 2009 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* class.c (rb_singleton_class_clone): Qnil must be used for a null
|
* class.c (rb_singleton_class_clone): Qnil must be used for a null
|
||||||
|
|
|
@ -530,14 +530,14 @@ BigDecimal_to_i(VALUE self)
|
||||||
|
|
||||||
/* Infinity or NaN not converted. */
|
/* Infinity or NaN not converted. */
|
||||||
if(VpIsNaN(p)) {
|
if(VpIsNaN(p)) {
|
||||||
VpException(VP_EXCEPTION_NaN,"Computation results to 'NaN'(Not a Number)",1);
|
VpException(VP_EXCEPTION_NaN,"Computation results to 'NaN'(Not a Number)",0);
|
||||||
return Qnil; /* not reached */
|
return Qnil;
|
||||||
} else if(VpIsPosInf(p)) {
|
} else if(VpIsPosInf(p)) {
|
||||||
VpException(VP_EXCEPTION_INFINITY,"Computation results to 'Infinity'",1);
|
VpException(VP_EXCEPTION_INFINITY,"Computation results to 'Infinity'",0);
|
||||||
return Qnil; /* not reached */
|
return Qnil;
|
||||||
} else if(VpIsNegInf(p)) {
|
} else if(VpIsNegInf(p)) {
|
||||||
VpException(VP_EXCEPTION_INFINITY,"Computation results to '-Infinity'",1);
|
VpException(VP_EXCEPTION_INFINITY,"Computation results to '-Infinity'",0);
|
||||||
return Qnil; /* not reached */
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
e = VpExponent10(p);
|
e = VpExponent10(p);
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
#define RUBY_VERSION "1.8.7"
|
#define RUBY_VERSION "1.8.7"
|
||||||
#define RUBY_RELEASE_DATE "2009-11-09"
|
#define RUBY_RELEASE_DATE "2009-11-16"
|
||||||
#define RUBY_VERSION_CODE 187
|
#define RUBY_VERSION_CODE 187
|
||||||
#define RUBY_RELEASE_CODE 20091109
|
#define RUBY_RELEASE_CODE 20091116
|
||||||
#define RUBY_PATCHLEVEL 202
|
#define RUBY_PATCHLEVEL 203
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
#define RUBY_VERSION_MINOR 8
|
#define RUBY_VERSION_MINOR 8
|
||||||
#define RUBY_VERSION_TEENY 7
|
#define RUBY_VERSION_TEENY 7
|
||||||
#define RUBY_RELEASE_YEAR 2009
|
#define RUBY_RELEASE_YEAR 2009
|
||||||
#define RUBY_RELEASE_MONTH 11
|
#define RUBY_RELEASE_MONTH 11
|
||||||
#define RUBY_RELEASE_DAY 9
|
#define RUBY_RELEASE_DAY 16
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue