Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 marshal 方法出现问题 _blankCharsMask overflows int #628

Closed
jrovis opened this issue May 15, 2024 · 3 comments
Closed

使用 marshal 方法出现问题 _blankCharsMask overflows int #628

jrovis opened this issue May 15, 2024 · 3 comments

Comments

@jrovis
Copy link

jrovis commented May 15, 2024

Sonic 版本 v1.11.6

使用 sonic.Marshal() 方法时,报错类型溢出,报错信息如下

# github.com/bytedance/sonic/ast
../go/pkg/mod/github.com/bytedance/sonic@v1.11.6/ast/decode.go:40:25: _blankCharsMask (untyped int constant 4294977024) overflows int
@AsterDY
Copy link
Collaborator

AsterDY commented May 15, 2024

请提供可复现的数据和代码

@maxid
Copy link

maxid commented May 19, 2024

GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o linux_arm32 .

github.com/bytedance/sonic/ast

vendor/github.com/bytedance/sonic/ast/decode.go:40:25: _blankCharsMask (untyped int constant 4294977024) overflows int
make: *** [build_linux] Error 1

构建 arm32 应用时也出现类似问题

@AsterDY
Copy link
Collaborator

AsterDY commented May 20, 2024

目前不支持任何32位环境哈,我们后续加个主动提醒

@liuq19 liuq19 closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants