From 5252b09a868e8db902f08eb1aee13db4cc583e0c Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Fri, 20 Oct 2023 12:49:40 +0200 Subject: [PATCH] cmd/geth: fix 32-bit build --- cmd/geth/logtestcmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/geth/logtestcmd.go b/cmd/geth/logtestcmd.go index 6ce859d06e..db9cbabd2a 100644 --- a/cmd/geth/logtestcmd.go +++ b/cmd/geth/logtestcmd.go @@ -51,8 +51,8 @@ func logTest(ctx *cli.Context) error { { // int64 log.Info("int64", "1,000,000", int64(1000000)) log.Info("int64", "-1,000,000", int64(-1000000)) - log.Info("int64", "9,223,372,036,854,775,807", math.MaxInt64) - log.Info("int64", "-9,223,372,036,854,775,808", math.MinInt64) + log.Info("int64", "9,223,372,036,854,775,807", int64(math.MaxInt64)) + log.Info("int64", "-9,223,372,036,854,775,808", int64(math.MinInt64)) } { // uint64 log.Info("uint64", "1,000,000", uint64(1000000))