diff --git a/memiavl/tree.go b/memiavl/tree.go index 15b01c9cf0..4e3fbadb1c 100644 --- a/memiavl/tree.go +++ b/memiavl/tree.go @@ -110,7 +110,7 @@ func (t *Tree) setInitialVersion(initialVersion uint32) { if initialVersion < 1 { t.version = 0 } else { - t.version = uint32(initialVersion - 1) + t.version = initialVersion - 1 } }