summaryrefslogtreecommitdiffstats
path: root/mpi-patches/fix-mult-bug
blob: e86d0363d0ffa5d1103b0504661fa2b7d0958c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: mpi-1.8.6/mpi.c
===================================================================
--- mpi-1.8.6.orig/mpi.c	2011-12-10 12:05:39.000000000 -0800
+++ mpi-1.8.6/mpi.c	2011-12-10 12:05:43.000000000 -0800
@@ -3263,7 +3263,7 @@
   }
 
   for(ix = 0; ix < max; ix++) {
-    w = (dp[ix] * d) + k;
+    w = (dp[ix] * (mp_word) d) + k;
     dp[ix] = ACCUM(w);
     k = CARRYOUT(w);
   }