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

serialize pack check 'nan' number value #1600

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sniper00
Copy link
Contributor

No description provided.

@cloudwu
Copy link
Owner

cloudwu commented May 19, 2022

Why nan can’t be serialized?

@sniper00
Copy link
Contributor Author

Why nan can’t be serialized?

Lua中产生NaN的一个重要途径就是除0, 这种错误往往不易觉察,并且可能会传播给其他服务。seri.pack主要用于服务间通信,感觉用它检测能提前发现这种错误

@cloudwu
Copy link
Owner

cloudwu commented May 20, 2022

我认为 NaN 本身就是标准定义的合法的 float 值,不应该在序列化层面特例处理。

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

Successfully merging this pull request may close these issues.

None yet

2 participants