VM: change the BIGNUM_TO_POINTER macro so that it automatically sees through tagged pointers

db4
Björn Lindqvist 2014-06-16 23:57:38 +02:00 committed by John Benediktsson
parent e862f70a16
commit 8beb4e179d
1 changed files with 1 additions and 1 deletions

View File

@ -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