Skip to content

Commit

Permalink
simpler workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Dec 7, 2020
1 parent 26442f3 commit 1f8c1e3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions les/utils/expiredvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package utils

import (
"fmt"
"math"
"sync"

Expand Down Expand Up @@ -89,10 +88,9 @@ func (e *ExpiredValue) Add(amount int64, logOffset Fixed64) int64 {
if base >= 0 || uint64(-base) <= e.Base {
// This is a temporary fix to circumvent a golang
// uint conversion issue on arm64, which needs to
// be investigated further. FIXME
fmt.Printf("problem: %d %f %d %d %d\n", e.Base, base, uint64(base), int64(e.Base), int64(base))
e.Base += uint64(base)
fmt.Println(e.Base)
// be investigated further. More details at:
// https://github.com/golang/go/issues/43047
e.Base += uint64(int64(base))
return amount
}
net := int64(-float64(e.Base) / factor)
Expand Down

0 comments on commit 1f8c1e3

Please sign in to comment.