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

当字段为负数时这里会导致编码后的结果不对 #6

Closed
samoyedsun opened this issue Mar 12, 2018 · 1 comment
Closed

当字段为负数时这里会导致编码后的结果不对 #6

samoyedsun opened this issue Mar 12, 2018 · 1 comment

Comments

@samoyedsun
Copy link

改为vh = v;就没问题了

vh = uint64_rshift(v, 31);

@zhangshiqian1214
Copy link
Owner

由于javascript的数字类型是64位的双精数,做位操作后,会截成32位的有符号整数,已经fix

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

2 participants