Skip to content

Commit d63e07c

Browse files
committed
accounts: fix compilation issue for i386 systems
Apparently the %d formatting directive implicitly uses `int` as its data type, which on i386 systems is int32. So the value math.MaxInt64 overflows that value, which causes the compilation to fail.
1 parent 4a3a628 commit d63e07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accounts/store_kvdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (s *BoltStore) IncreaseAccountBalance(_ context.Context, id AccountID,
244244

245245
update := func(account *OffChainBalanceAccount) error {
246246
if amount > math.MaxInt64 {
247-
return fmt.Errorf("amount %d exceeds the maximum of %d",
247+
return fmt.Errorf("amount %d exceeds the maximum of %v",
248248
amount, math.MaxInt64)
249249
}
250250

0 commit comments

Comments
 (0)