From 9c18d6d2b9b203f1ce147ad985d8a2792131cc14 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 17 Feb 2017 18:28:22 +0000 Subject: [PATCH] Use proper variable --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index ac97fd61..87140e3c 100644 --- a/runtime.c +++ b/runtime.c @@ -1305,7 +1305,7 @@ int FUNC_OP(void *data, object x, object y) { \ } else if (tx == -1 && ty == bignum_tag) { \ result = Cyc_bignum_cmp(BN_CMP, x, tx, y, ty); \ } else if (tx == double_tag && ty == bignum_tag) { \ - result = (double_value(x)) OP mp_get_double(&bignum_value(x)); \ + result = (double_value(x)) OP mp_get_double(&bignum_value(y)); \ } else { \ make_string(s, "Bad argument type"); \ make_pair(c1, y, NULL); \