OSDN Git Service

Remove the types float and complex.
[pf3gnuchains/gcc-fork.git] / libgo / go / container / vector / numbers_test.go
index a44242f..d540ace 100644 (file)
@@ -20,7 +20,7 @@ func s(n uint64) string {
        lens := len(str)
        a := make([]string, (lens+2)/3)
        start := lens
-       for i, _ := range a {
+       for i := range a {
                start -= 3
                if start < 0 {
                        start = 0
@@ -46,7 +46,7 @@ func TestVectorNums(t *testing.T) {
        v.Resize(0, 0)
        runtime.GC()
        n := m.Alloc - m0.Alloc
-       t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float(n)/memTestN)
+       t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float64(n)/memTestN)
 }
 
 
@@ -64,7 +64,7 @@ func TestIntVectorNums(t *testing.T) {
        v.Resize(0, 0)
        runtime.GC()
        n := m.Alloc - m0.Alloc
-       t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float(n)/memTestN)
+       t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float64(n)/memTestN)
 }
 
 
@@ -82,7 +82,7 @@ func TestStringVectorNums(t *testing.T) {
        v.Resize(0, 0)
        runtime.GC()
        n := m.Alloc - m0.Alloc
-       t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float(n)/memTestN)
+       t.Logf("%T.Push(%#v), n = %s: Alloc/n = %.2f\n", v, c, s(memTestN), float64(n)/memTestN)
 }