buffer_test: fix build errors.

geesefs-0-30-9
Aaron Jacobs 2016-12-19 12:58:55 +11:00
parent 0a22738acf
commit a7c1a1474a
1 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ func BenchmarkOutMessageReset(b *testing.B) {
om.Reset()
}
b.SetBytes(int64(unsafe.Offsetof(om.storage)) + int64(om.offset))
b.SetBytes(int64(unsafe.Offsetof(om.payload)))
})
// Many megabytes worth of buffers, which should defeat the CPU cache.
@ -321,7 +321,7 @@ func BenchmarkOutMessageReset(b *testing.B) {
oms[i%numMessages].Reset()
}
b.SetBytes(int64(unsafe.Offsetof(oms[0].storage)) + int64(oms[0].offset))
b.SetBytes(int64(unsafe.Offsetof(oms[0].payload)))
})
}