Skip to content

Commit

Permalink
Fix a silly bug in the shift to support Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed Oct 22, 2023
1 parent 90f5c9d commit 46f605c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/provision/androidlibrary.d
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class AndroidLibrary {
if (shift) {
throw new LoaderException("Cannot load the library on your system! The page size is too big!");
}
shift = ((pageCeil(headerStart) - headerStart) + originalPageSize) & ~(originalPageSize - 1);
shift = ((pageCeil(headerStart) - headerStart) + originalPageSize - 1) & ~(originalPageSize - 1);
log.traceF!"Mandating a shift of %d to hopefully fix page size."(shift);
adjacentProtection = 0;
}
Expand Down

0 comments on commit 46f605c

Please sign in to comment.