fix Integer operator<< output on Windows x64

pull/2/head
weidai 2009-04-05 20:02:22 +00:00
parent 21e2d55f9d
commit 82cc3ff5d4
1 changed files with 3 additions and 1 deletions

View File

@ -358,8 +358,10 @@ S DivideThreeWordsByTwo(S *A, S B0, S B1, D *dummy=NULL)
S Q;
if (S(B1+1) == 0)
Q = A[2];
else
else if (B1 > 0)
Q = D(A[1], A[2]) / S(B1+1);
else
Q = D(A[0], A[1]) / B0;
// now subtract Q*B from A
D p = D::Multiply(B0, Q);