From aaee331c7ffce5bf704a717d1b7ae73564e2d59f Mon Sep 17 00:00:00 2001 From: marcandre Date: Mon, 9 Nov 2009 06:50:55 +0000 Subject: [PATCH] * ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): rdoc fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/bigdecimal/bigdecimal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index cbb70d3008..185a0799fc 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -506,7 +506,9 @@ BigDecimal_IsNaN(VALUE self) return Qfalse; } -/* Returns True if the value is infinite */ +/* Returns nil, −1, or +1 depending on whether the value is finite, + * -infinity, or +infinity. + */ static VALUE BigDecimal_IsInfinite(VALUE self) { @@ -773,7 +775,7 @@ BigDecimal_zero(VALUE self) return VpIsZero(a) ? Qtrue : Qfalse; } -/* Returns True if the value is non-zero. */ +/* Returns self if the value is non-zero, nil otherwise. */ static VALUE BigDecimal_nonzero(VALUE self) {