Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JVM] Fix conversion to unsigned int
... in VMArray with 32 bit. The old code handled the 1 as a signed integer, so that (1 << 32) just evaluated to 1. An alternative would have been to use Integer.toUnsignedLong(i), which is available since Java 8. We could change to those methods in the future -- but for consistency the should be used for the other types of VMArrays as well.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters