[前][次][番号順一覧][スレッド一覧]

ruby-changes:70648

From: Nobuyoshi <ko1@a...>
Date: Wed, 29 Dec 2021 11:54:24 +0900 (JST)
Subject: [ruby-changes:70648] 27765a7502 (master): Fix the warning in rb_big2dbl, Bignum is no longer defined

https://git.ruby-lang.org/ruby.git/commit/?id=27765a7502

From 27765a75025d3e13d512b52dd3755ec1e7da004f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 29 Dec 2021 11:49:06 +0900
Subject: Fix the warning in rb_big2dbl, Bignum is no longer defined

---
 bignum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bignum.c b/bignum.c
index 841ed78665c..c5592a14aeb 100644
--- a/bignum.c
+++ b/bignum.c
@@ -5317,7 +5317,7 @@ rb_big2dbl(VALUE x) https://github.com/ruby/ruby/blob/trunk/bignum.c#L5317
     double d = big2dbl(x);
 
     if (isinf(d)) {
-	rb_warning("Bignum out of Float range");
+	rb_warning("Integer out of Float range");
 	if (d < 0.0)
 	    d = -HUGE_VAL;
 	else
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]