summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-10 17:24:30 +0800
committerKeuin <[email protected]>2022-09-10 17:24:36 +0800
commita1eef71e0f092ccc7be89b434eaee08ec98eea41 (patch)
treeb2f6087eba4dd3c4976f21ff0e76cc66467026b8
parentc285c4f88bfe8f4c4653376e705eafac557f98ef (diff)
Bugfix: make it compile on 32-bit platforms.
-rw-r--r--danmaku/dmpkg/raw.go2
1 files changed, 1 insertions, 1 deletions
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