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
dart2js does not carry the signed bit when code is compiled to javascript that uses the shift operators << >> . This leads to bugs with the way bit shifting is implemented with native dart int.
The text was updated successfully, but these errors were encountered:
Are these bugs contained to shifting operations on BigNum or are they also apparent when doing ordinary math with bignums (which also internally rely on shifting) ?
I think its only when shifting numbers that are negative the object fails. Internally none of numbers in the internal data structure should be negative, so all computations should be safe. I noticed this issue when dealing with negative numbers and put a safe guard in for checking a shift on negative carry http://goo.gl/Ayjnv . While I dont like this solution at the moment, it seems to work.
dart2js does not carry the signed bit when code is compiled to javascript that uses the shift operators << >> . This leads to bugs with the way bit shifting is implemented with native dart int.
The text was updated successfully, but these errors were encountered: