diff options
Diffstat (limited to 'lang/japhar/patches/patch-aj')
-rw-r--r-- | lang/japhar/patches/patch-aj | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/japhar/patches/patch-aj b/lang/japhar/patches/patch-aj new file mode 100644 index 00000000000..64fac01777f --- /dev/null +++ b/lang/japhar/patches/patch-aj @@ -0,0 +1,16 @@ +$NetBSD: patch-aj,v 1.1 2006/06/04 13:52:57 joerg Exp $ + +--- lib/libruntime/interpfunc.c.orig 2006-05-21 16:34:25.000000000 +0000 ++++ lib/libruntime/interpfunc.c +@@ -1842,7 +1842,11 @@ OPCODE(fcmpg, 150, 0, 2, 1) + op_stack_pop_float(ENV(f), OPSTACK(f), &value2); + op_stack_pop_float(ENV(f), OPSTACK(f), &value1); + ++#ifdef isnan /* assume C99 style macro */ ++ if (isnan(value1) || isnan(value2)) ++#else + if (isnanf(value1) || isnanf(value2)) ++#endif + op_stack_push_int(ENV(f), OPSTACK(f), 1); + else if (value1 > value2) + op_stack_push_int(ENV(f), OPSTACK(f), 1); |