summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-04 07:11:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-04 07:11:56 +0000
commit0adc031e83b0edc6d32e6be574764a47304d759a (patch)
treee31ec8d8116df4afa27cf2d30190155c8367aa52 /numeric.c
parent2b5990e921d3bf5afd4e2845bdcfbc5fd880a380 (diff)
* string.c (rb_str_aset): should raise error if an indexing string
is not found in the receiver. * sprintf.c (rb_f_sprintf): "%d" should convert objects into integers using Integer(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 36292114f3..7dc46c0487 100644
--- a/numeric.c
+++ b/numeric.c
@@ -646,7 +646,7 @@ static VALUE flo_is_infinite_p(num)
double value = RFLOAT(num)->value;
if (isinf(value)) {
- return INT2FIX( value < 0 ? -1 : +1 );
+ return INT2FIX( value < 0 ? -1 : 1 );
}
return Qnil;