@@ -340,8 +340,8 @@ _itoa (unsigned long long int value, char *buflim, unsigned int base,
if (big_normalization_steps == 0)
xh = 0;
else
- xh = (mp_limb_t) (value >> 64 - big_normalization_steps);
- xl = (mp_limb_t) (value >> 32 - big_normalization_steps);
+ xh = (mp_limb_t) (value >> (64 - big_normalization_steps));
+ xl = (mp_limb_t) (value >> (32 - big_normalization_steps));
udiv_qrnnd (x1hi, r, xh, xl, big_base_norm);
xl = ((mp_limb_t) value) << big_normalization_steps;
@@ -352,7 +352,7 @@ _itoa (unsigned long long int value, char *buflim, unsigned int base,
xh = x1hi;
else
xh = ((x1hi << big_normalization_steps)
- | (x1lo >> 32 - big_normalization_steps));
+ | (x1lo >> (32 - big_normalization_steps)));
xl = x1lo << big_normalization_steps;
udiv_qrnnd (t[0], x, xh, xl, big_base_norm);
t[1] = x >> big_normalization_steps;
@@ -228,8 +228,8 @@ _itowa (unsigned long long int value, wchar_t *buflim, unsigned int base,
if (big_normalization_steps == 0)
xh = 0;
else
- xh = (mp_limb_t) (value >> 64 - big_normalization_steps);
- xl = (mp_limb_t) (value >> 32 - big_normalization_steps);
+ xh = (mp_limb_t) (value >> (64 - big_normalization_steps));
+ xl = (mp_limb_t) (value >> (32 - big_normalization_steps));
udiv_qrnnd (x1hi, r, xh, xl, big_base_norm);
xl = ((mp_limb_t) value) << big_normalization_steps;
@@ -240,7 +240,7 @@ _itowa (unsigned long long int value, wchar_t *buflim, unsigned int base,
xh = x1hi;
else
xh = ((x1hi << big_normalization_steps)
- | (x1lo >> 32 - big_normalization_steps));
+ | (x1lo >> (32 - big_normalization_steps)));
xl = x1lo << big_normalization_steps;
udiv_qrnnd (t[0], x, xh, xl, big_base_norm);
t[1] = x >> big_normalization_steps;