From 0331b972a274dcd593990aef29f900f1ea7fa7c9 Mon Sep 17 00:00:00 2001 From: Matt Kocubinski Date: Fri, 14 Apr 2023 11:20:14 -0500 Subject: [PATCH] fix for 32 bit platforms --- x/tx/signing/aminojson/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/tx/signing/aminojson/time.go b/x/tx/signing/aminojson/time.go index aa0ca9c84f5c..da02514c0255 100644 --- a/x/tx/signing/aminojson/time.go +++ b/x/tx/signing/aminojson/time.go @@ -46,7 +46,7 @@ func marshalTimestamp(message protoreflect.Message, writer io.Writer) error { // MaxDurationSeconds the maximum number of seconds (when expressed as nanoseconds) which can fit in an int64. // gogoproto encodes google.protobuf.Duration as a time.Duration, which is 64-bit signed integer. -const MaxDurationSeconds = int64(math.MaxInt64/int(1e9)) - 1 +const MaxDurationSeconds = int64(math.MaxInt64)/1e9 - 1 func marshalDuration(message protoreflect.Message, writer io.Writer) error { fields := message.Descriptor().Fields()