From 8beb4e179de24fefcb5b481b026f9c94bff49c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Mon, 16 Jun 2014 23:57:38 +0200 Subject: [PATCH] VM: change the BIGNUM_TO_POINTER macro so that it automatically sees through tagged pointers --- vm/bignumint.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/bignumint.hpp b/vm/bignumint.hpp index e81809b4a7..9c5640d5a5 100644 --- a/vm/bignumint.hpp +++ b/vm/bignumint.hpp @@ -56,7 +56,7 @@ typedef int64_t bignum_twodigit_type; #endif /* BIGNUM_TO_POINTER casts a bignum object to a digit array pointer. */ -#define BIGNUM_TO_POINTER(bignum) ((bignum_digit_type*)(bignum + 1)) +#define BIGNUM_TO_POINTER(bignum) ((bignum_digit_type*)(bignum->data())) /* BIGNUM_EXCEPTION is invoked to handle assertion violations. */ #define BIGNUM_EXCEPTION abort