bytedance / sonic

A blazingly fast JSON serializing & deserializing library
Apache License 2.0
6.79k stars 333 forks source link

在启用cgo环境中的情况下,编译出错ast\decode.go:31:29: cannot use 4294977024 (untyped int constant) as int value in constant declaration (overflows) #643

Closed YanCastle closed 4 months ago

YanCastle commented 4 months ago

完整错误:

github.com/bytedance/sonic/ast

C:\Users\Administrator\go\pkg\mod\github.com\bytedance\sonic@v1.11.7\ast\decode.go:31:29: cannot use 4294977024 (untyped int constant) as int value in constant declaration (overflows)

YanCastle commented 4 months ago

原因是在32位系统下,_blankCharsMask 所对应的值 4294977024 超出了int类型的范围导致的

liuq19 commented 4 months ago

这个是已知问题,sonic 目前不支持 32位

631

634

AsterDY commented 4 months ago

repeated issue #631