Fixed a build issue on some compilers.

This commit is contained in:
Matthias Koefferlein 2018-07-24 22:29:45 +02:00
parent c9859b4f8f
commit e2f4c1874a
1 changed files with 2 additions and 2 deletions

View File

@ -1046,10 +1046,10 @@ public:
} else if (is_neg () && d.is_neg ()) {
std::pair<long_uint<N, B, BI>, long_uint<N, B, BI> > res = (-*this).long_uint<N, B, BI>::divmod (-d);
// The definition of the modulo sign is consistent with int arithmetics
return std::make_pair (res.first, -long_int<N, B, BI> (res.second));
return std::make_pair (long_int<N, B, BI> (res.first), -long_int<N, B, BI> (res.second));
} else {
std::pair<long_uint<N, B, BI>, long_uint<N, B, BI> > res = long_uint<N, B, BI>::divmod (d);
return std::make_pair (res.first, res.second);
return std::make_pair (long_int<N, B, BI> (res.first), long_int<N, B, BI> (res.second));
}
}