From d52d142275c783208a74dc90c81551a51d1e55c4 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Wed, 7 May 2014 12:06:22 -0600 Subject: [PATCH] Minor fixes. --- bucket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket.go b/bucket.go index b8dbf25..25ad1ba 100644 --- a/bucket.go +++ b/bucket.go @@ -447,7 +447,7 @@ func (b *Bucket) spill() error { // Update the child bucket header in this bucket. value = make([]byte, unsafe.Sizeof(bucket{})) - bucket := (*bucket)(unsafe.Pointer(&value[0])) + var bucket = (*bucket)(unsafe.Pointer(&value[0])) *bucket = *child.bucket }