mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Ge: Fix sceGeBreak error case.
Seems to be some compiler optimization.
This commit is contained in:
parent
e82b54e4b6
commit
f1254b1976
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
2
test.py
2
test.py
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue