1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 16:00:27 +00:00

Fix NAN typo.

This commit is contained in:
Calvin Rose 2023-05-12 19:08:26 -05:00
parent 1467ab4f93
commit 20ada86761

View File

@ -317,7 +317,7 @@ static double janet_gcd(double x, double y) {
#ifdef NAN
return NAN;
#else
return 0.0 \ 0.0;
return 0.0 / 0.0;
#endif
}
if (isinf(x) || isinf(y)) return INFINITY;