bug fix in for loop
authoradash <adash>
Wed, 20 Feb 2008 20:00:13 +0000 (20:00 +0000)
committeradash <adash>
Wed, 20 Feb 2008 20:00:13 +0000 (20:00 +0000)
Robust/src/Benchmarks/Prefetch/MatrixMultiply/MatrixMultiply.java

index 5c178b20cc22fa0b4dae6637d8299542b074bfdc..4ccbad47713beef1b907c8b710bfdbab47ede312 100644 (file)
@@ -29,7 +29,7 @@ public class MatrixMultiply extends Thread{
                atomic {
                    //write the results
                    for(int i=x0;i<=x1;i++) {
-                       for(int j=y0;y<y1;j++) {
+                       for(int j=y0;j<=y1;j++) {
                            mmul.c[i][j]=localresults[i-x0][j-y0];
                        }
                    }
@@ -141,7 +141,6 @@ public class MMul{
        public int[][] a;
        public int[][] b;
        public int[][] c;
-       int k;
 
        public MMul(int L, int M, int N) {
                this.L = L;