diff --git a/argon/vm/memory/refcount.h b/argon/vm/memory/refcount.h index 1b92c86b..36ad6046 100644 --- a/argon/vm/memory/refcount.h +++ b/argon/vm/memory/refcount.h @@ -201,7 +201,7 @@ namespace argon::vm::memory { * @return True if the object is managed by the GC, false otherwise. */ bool IsGcObject() const { - return RC_CHECK_IS_GCOBJ(this->bits_.load(std::memory_order_seq_cst)); + return RC_CHECK_IS_GCOBJ(*((uintptr_t*) &this->bits_)); } /**