diff options
author | Keuin <[email protected]> | 2022-09-10 17:24:30 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-10 17:24:36 +0800 |
commit | a1eef71e0f092ccc7be89b434eaee08ec98eea41 (patch) | |
tree | b2f6087eba4dd3c4976f21ff0e76cc66467026b8 /danmaku/dmpkg/raw.go | |
parent | c285c4f88bfe8f4c4653376e705eafac557f98ef (diff) |
Bugfix: make it compile on 32-bit platforms.
Diffstat (limited to 'danmaku/dmpkg/raw.go')
-rw-r--r-- | danmaku/dmpkg/raw.go | 2 |
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 |