Skip to content

Commit e1519e0

Browse files
committed
ensure 32 bit works
1 parent 4a6cd85 commit e1519e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/badges/simplecache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (cache *SimpleCache) expireItems() {
8787
count := 10
8888
if len(cache.items) >= cache.maxItems {
8989
lfuKey := ""
90-
lfuLowestCount := math.MaxInt64
90+
lfuLowestCount := math.MaxInt
9191

9292
for k, v := range cache.items {
9393
v.hits--

0 commit comments

Comments
 (0)