Skip to content

Commit

Permalink
fix for 32 bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Apr 14, 2023
1 parent e4dbf1b commit 0331b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/tx/signing/aminojson/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0331b97

Please sign in to comment.