Ge: Fix sceGeBreak error case.

Seems to be some compiler optimization.
This commit is contained in:
Unknown W. Brackets 2022-01-25 19:50:35 -08:00
parent e82b54e4b6
commit f1254b1976
2 changed files with 2 additions and 2 deletions

View file

@ -410,7 +410,7 @@ static int sceGeBreak(u32 mode, u32 unknownPtr) {
return SCE_KERNEL_ERROR_INVALID_MODE;
}
// Not sure what this is supposed to be for...
if ((int)unknownPtr < 0 || (int)unknownPtr + 16 < 0) {
if ((int)unknownPtr < 0 || (int)(unknownPtr + 16) < 0) {
WARN_LOG_REPORT(SCEGE, "sceGeBreak(mode=%d, unknown=%08x): invalid ptr", mode, unknownPtr);
return SCE_KERNEL_ERROR_PRIV_REQUIRED;
} else if (unknownPtr != 0) {

View file

@ -143,6 +143,7 @@ tests_good = [
"gpu/filtering/linear",
"gpu/filtering/mipmaplinear",
"gpu/filtering/nearest",
"gpu/ge/break",
"gpu/ge/context",
"gpu/ge/edram",
"gpu/ge/enqueueparam",
@ -383,7 +384,6 @@ tests_next = [
"gpu/complex/complex",
"gpu/depth/precision",
"gpu/displaylist/state",
"gpu/ge/break",
"gpu/ge/get",
"gpu/primitives/bezier",
"gpu/primitives/continue",