notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a55ebc
)
gte: change return to s64 for BOUNDS_
author
retro-wertz
<retro-wertz@users.noreply.github.com>
Sat, 23 Mar 2019 07:25:04 +0000
(15:25 +0800)
committer
GitHub
<noreply@github.com>
Sat, 23 Mar 2019 07:25:04 +0000
(15:25 +0800)
fix https://github.com/notaz/pcsx_rearmed/issues/129
libpcsxcore/gte.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/gte.c
b/libpcsxcore/gte.c
index
62fc7f3
..
31213ef
100644
(file)
--- a/
libpcsxcore/gte.c
+++ b/
libpcsxcore/gte.c
@@
-170,7
+170,7
@@
#ifndef FLAGLESS
-static inline s
32
BOUNDS_(psxCP2Regs *regs, s64 n_value, s64 n_max, int n_maxflag, s64 n_min, int n_minflag) {
+static inline s
64
BOUNDS_(psxCP2Regs *regs, s64 n_value, s64 n_max, int n_maxflag, s64 n_min, int n_minflag) {
if (n_value > n_max) {
gteFLAG |= n_maxflag;
} else if (n_value < n_min) {