From 506b5af9d3faf014412f66ccdd1877e8734aca89 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 4 Nov 2016 22:56:06 -0700 Subject: [PATCH] WIP --- termmeta.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/termmeta.go b/termmeta.go index 9218106..0e85527 100644 --- a/termmeta.go +++ b/termmeta.go @@ -96,7 +96,6 @@ func (index *termMetaDb) output(dir string, pretty bool) error { } var entries [][]string - var entryCount = len(entries) for _, e := range index.entries { entries = append( entries, @@ -108,6 +107,8 @@ func (index *termMetaDb) output(dir string, pretty bool) error { ) } + entryCount := len(entries) + for i := 0; i < entryCount; i += BANK_STRIDE { indexSrc := i indexDst := i + BANK_STRIDE