diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-17 06:01:49 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-17 06:01:49 -0800 |
commit | 1e564f2d3085e394c0983627ea6fcc95df49a50d (patch) | |
tree | 2652e4dbe3053e1d4d28ef35707ee4f2a3dd7099 /table/path.go | |
parent | 6403c806634491b6cd6c3c90f61badf478fed9aa (diff) |
table: fix NewBitmap's size calculation
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/path.go b/table/path.go index 10b33448..65c33a26 100644 --- a/table/path.go +++ b/table/path.go @@ -42,7 +42,7 @@ func (b Bitmap) GetFlag(i uint) bool { } func NewBitmap(size int) Bitmap { - return Bitmap(make([]uint64, size/64+1)) + return Bitmap(make([]uint64, (size+64-1)/64)) } type originInfo struct { |