1 #include "ruby/missing.h"
10 /* FIXME: we have not yet seen any situation this is
11 * necessary. Please write a proper implementation that
12 * covers this branch. */
13 if (spec
&& spec
[0]) {
15 int len
= snprintf(NULL
, 0, "NAN(%s)", spec
);
16 char *buf
= malloc(len
+ 1); /* +1 for NUL */
17 sprintf(buf
, "NAN(%s)", spec
);
18 generated_nan
= strtod(buf
, NULL
);
25 assert(!spec
|| !spec
[0]);