なかだです。 At Sun, 4 Jul 2004 13:55:49 +0900, H.Yamamoto wrote in [ruby-dev:23855]: > @@ -772,6 +773,22 @@ ruby_strtod(string, endPtr) > } > > /* > + * Check for NaN and Inf. > + */ > + > + if (strncmpi(p, "NaN", 3) == 0) { > + p += 3; > + fraction = 0.0 / 0; > + goto exit; > + } > + > + if (strncmpi(p, "Inf", 3) == 0) { > + p += 3; > + fraction = 1.0 / 0; > + goto exit; > + } > + > + /* > * Count the number of digits in the mantissa > * and also locate the decimal point. > */ strncasecmp()を使って下さい。また、除数も 0.0 にしないとgccが警 告を出します。 -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦