Check for non-zero instead of negative.

This commit is contained in:
Andy Nguyen 2021-11-13 15:53:31 +01:00
parent f480a063ab
commit b6c484fbda
1 changed files with 2 additions and 2 deletions

View File

@ -86,13 +86,13 @@ public final class JitDefaultImpl extends AbstractJit {
align(size + alignment - 1, PAGE_SIZE),
PROT_READ | PROT_WRITE | PROT_EXEC,
sharedHandle)
< 0) {
!= 0) {
throw new InternalError("sceKernelJitCreateSharedMemory failed");
}
if (sceKernelJitCreateAliasOfSharedMemory(
sharedHandle.get(), PROT_READ | PROT_WRITE, aliasHandle)
< 0) {
!= 0) {
throw new InternalError("sceKernelJitCreateAliasOfSharedMemory failed");
}