You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've didn't encountered this problem in real life (in ton wallet creation use case). But I would like to report it anyway
Problem
This code throws an exeception for bits size more than 53. But actually it should throw bit size more than 31
Why?
Because bits manipulations with JS number are restricted by 32 bit integer type. Left operand cast to integer happens every time when "|", "&" or "^" is applied to it.
I've didn't encountered this problem in real life (in ton wallet creation use case). But I would like to report it anyway
Problem
This code throws an exeception for bits size more than 53. But actually it should throw bit size more than 31
Why?
Because bits manipulations with JS number are restricted by 32 bit integer type. Left operand cast to integer happens every time when "|", "&" or "^" is applied to it.
So for a big number this code will return min-1
The text was updated successfully, but these errors were encountered: