From 7162d8916effe2c894ddaf8a70b6124f12b4d791 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Fri, 29 Sep 2017 22:20:37 -0400 Subject: [PATCH] Use math.MaxInt32 to avoid a build error on 32-bit platforms --- src/duplicacy_snapshotmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 337d68f..fea6832 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -968,7 +968,7 @@ func (manager *SnapshotManager) ShowStatisticsTabular(snapshotMap map[string][]* for _, snapshot := range snapshotList { for _, chunkID := range manager.GetSnapshotChunks(snapshot) { if earliestSeenChunks[chunkID] == 0 { - earliestSeenChunks[chunkID] = math.MaxInt64 + earliestSeenChunks[chunkID] = math.MaxInt32 } earliestSeenChunks[chunkID] = MinInt(earliestSeenChunks[chunkID], snapshot.Revision) }