From a1eef71e0f092ccc7be89b434eaee08ec98eea41 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 10 Sep 2022 17:24:30 +0800 Subject: Bugfix: make it compile on 32-bit platforms. --- danmaku/dmpkg/raw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danmaku/dmpkg/raw.go b/danmaku/dmpkg/raw.go index 1cbd12e..17b538a 100644 --- a/danmaku/dmpkg/raw.go +++ b/danmaku/dmpkg/raw.go @@ -6,7 +6,7 @@ import ( "math" ) -const kMaxBodyLength = math.MaxUint32 - kHeaderLength +const kMaxBodyLength = math.MaxUint32 - uint64(kHeaderLength) // NewPlainExchange creates a new exchange with raw body specified. // body: a struct or a raw string -- cgit v1.2.3