[#39671] Ruby 1.8.1 on SX-6 — Masaki Hasegawa <masaki-h@...4u.or.jp>

はじめまして、長谷川 と申します。

16 messages 2004/05/19
[#39673] Re: Ruby 1.8.1 on SX-6 — Tanaka Akira <akr@...17n.org> 2004/05/19

In article <20040519.205107.102564296.suuchi29@naps.kishou.go.jp>,

[ruby-list:39685] sample/test.rb nan_test failed on ruby 1.8.2 [i386-mswin32]

From: Masahiro Kitajima <katonbo@...>
Date: 2004-05-20 01:54:22 UTC
List: ruby-list #39685
かとんぼです。

 mswin32 環境で、(ruby-bugs-ja:PR#594)と同じエラーが出ます。
 これで bcc32、mswin32 ともに大丈夫だと思うのですが。

Index: numeric.c
===================================================================
RCS file: /src/ruby/numeric.c,v
retrieving revision 1.101.2.6
diff -u -r1.101.2.6 numeric.c
--- numeric.c	17 May 2004 07:14:45 -0000	1.101.2.6
+++ numeric.c	20 May 2004 01:40:00 -0000
@@ -833,7 +833,7 @@
 	return num_equal(x, y);
     }
     a = RFLOAT(x)->value;
-#if defined __BORLANDC__
+#if defined HAVE_ISNAN
     if (isnan(a) || isnan(b)) return Qfalse;
 #endif
     return (a == b)?Qtrue:Qfalse;

-- 
北島雅博(かとんぼ)


In This Thread

Prev Next