POSIX math: nan(NULL) leads to... blead
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 3 Sep 2014 01:37:45 +0000 (21:37 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 3 Sep 2014 01:37:45 +0000 (21:37 -0400)
Thou shalt not follow the NULL pointer,
for chaos and madness await thee at its end.

ext/POSIX/POSIX.xs

index 3708b3e..24bd07e 100644 (file)
@@ -2348,7 +2348,7 @@ fma(x,y,z)
        RETVAL
 
 NV
-nan(s = 0)
+nan(s = "0")
        char*   s;
     CODE:
 #ifdef c99_nan