Commits

mark.dickinson  committed 74b82ee

[svn r75003] Silence MSVC compiler warnings.

  • Participants
  • Parent commits 4417558

Comments (0)

Files changed (1)

File Objects/longobject.c

 		digit hi = pin[i];
 		for (j = 0; j < size; j++) {
 			twodigits z = (twodigits)pout[j] << PyLong_SHIFT | hi;
-			hi = z / _PyLong_DECIMAL_BASE;
-			pout[j] = z - (twodigits)hi * _PyLong_DECIMAL_BASE;
+			hi = (digit)(z / _PyLong_DECIMAL_BASE);
+			pout[j] = (digit)(z - (twodigits)hi *
+					  _PyLong_DECIMAL_BASE);
 		}
 		while (hi) {
 			pout[size++] = hi % _PyLong_DECIMAL_BASE;