commit | 5564504507c9b307840a5d13d9700d46e2a8524d | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Tue Jan 06 15:19:02 2009 -0800 |
committer | Russ Cox <rsc@golang.org> | Tue Jan 06 15:19:02 2009 -0800 |
tree | f3f98baba1fdd5e0138a4875884aa85111308b3f | |
parent | 9662e7b2db0fa8c2bb4d8cf28940116763eedbc9 [diff] [blame] |
new new & make R=r OCL=22166 CL=22166
diff --git a/test/hilbert.go b/test/hilbert.go index a807c3c..5410db9 100644 --- a/test/hilbert.go +++ b/test/hilbert.go
@@ -47,10 +47,10 @@ func NewMatrix(n, m int) *Matrix { assert(0 <= n && 0 <= m); - a := new(*Matrix); + a := new(Matrix); a.n = n; a.m = m; - a.a = new([]*Big.Rational, n*m); + a.a = make([]*Big.Rational, n*m); return a; }