]> Cypherpunks repositories - gostls13.git/commitdiff
fix test
authorRobert Griesemer <gri@golang.org>
Tue, 7 Jul 2009 17:30:31 +0000 (10:30 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 7 Jul 2009 17:30:31 +0000 (10:30 -0700)
R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=31270
CL=31272

test/hilbert.go

index 163313e852246836c413e7181f740fa51a5b3cd5..9438045c863826bddf260dadfe23d2e54304bdea 100644 (file)
@@ -74,7 +74,7 @@ func NewHilbert(n int) *Matrix {
        a := NewMatrix(n, n);
        for i := 0; i < n; i++ {
                for j := 0; j < n; j++ {
-                       x := Big.Rat(1, i + j + 1);
+                       x := Big.Rat(1, int64(i + j + 1));
                        a.set(i, j, x);
                }
        }
@@ -95,7 +95,7 @@ func NewInverseHilbert(n int) *Matrix {
                        if (i+j)&1 != 0 {
                                x0 = x0.Neg();
                        }
-                       x1 := Big.Rat(i + j + 1, 1);
+                       x1 := Big.Rat(int64(i + j + 1), 1);
                        x2 := MakeRat(Big.Binomial(uint(n+i), uint(n-j-1)));
                        x3 := MakeRat(Big.Binomial(uint(n+j), uint(n-i-1)));
                        x4 := MakeRat(Big.Binomial(uint(i+j), uint(i)));