VM: adding a few forgotten .untagged() calls

db4
Björn Lindqvist 2014-06-17 17:55:55 +02:00 committed by John Benediktsson
parent 8741dbefce
commit 0e8e2af0a7
1 changed files with 2 additions and 2 deletions

View File

@ -1731,7 +1731,7 @@ bignum* factor_vm::bignum_gcd(bignum* a_, bignum* b_) {
b = d; b = d;
/* Initial reduction: make sure that 0 <= b <= a. */ /* Initial reduction: make sure that 0 <= b <= a. */
if (bignum_compare(a, b) == bignum_comparison_less) { if (bignum_compare(a.untagged(), b.untagged()) == bignum_comparison_less) {
swap(a, b); swap(a, b);
std::swap(size_a, size_b); std::swap(size_a, size_b);
} }
@ -1776,7 +1776,7 @@ bignum* factor_vm::bignum_gcd(bignum* a_, bignum* b_) {
if (k == 0) { if (k == 0) {
/* no progress; do a Euclidean step */ /* no progress; do a Euclidean step */
if (size_b == 0) { if (size_b == 0) {
return bignum_trim(a); return bignum_trim(a.untagged());
} }
data_root<bignum> e(bignum_trim(a.untagged()), this); data_root<bignum> e(bignum_trim(a.untagged()), this);
data_root<bignum> f(bignum_trim(b.untagged()), this); data_root<bignum> f(bignum_trim(b.untagged()), this);