mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-20 14:52:24 +00:00
Fix some 64-bit compilation issues.
[SVN r79362]
This commit is contained in:
@@ -1511,7 +1511,8 @@ void divide_unsigned_helper(cpp_int_backend<MinBits, Signed, Allocator>* result,
|
||||
{
|
||||
result->resize(r_order + 1);
|
||||
pres = result->limbs();
|
||||
pres[r_order] = 0; // just in case we don't set the most significant limb below.
|
||||
if(result->size() > r_order)
|
||||
pres[r_order] = 0; // just in case we don't set the most significant limb below.
|
||||
}
|
||||
|
||||
do
|
||||
|
||||
@@ -200,7 +200,7 @@ struct tommath_int
|
||||
unsigned shift = radix == 8 ? 3 : 4;
|
||||
unsigned block_count = DIGIT_BIT / shift;
|
||||
unsigned block_shift = shift * block_count;
|
||||
boost::uint32_t val, block;
|
||||
unsigned long long val, block;
|
||||
while(*s)
|
||||
{
|
||||
block = 0;
|
||||
|
||||
Reference in New Issue
Block a user