Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes `bytesToNumber()` to always return the result as an unsigned integer. Example: `byteArray` holds the value `2^32 - 3`, which is `11111111111111111111111111111101` in binary. The old implementation uses the `number` type, which is a signed integer, to calculate intermediate values. And because the most significant bit (MSB) is turned on, it interprets this as a negative number and returns `-3`.
- Loading branch information