summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/psx/gte.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/psx/gte.h')
-rw-r--r--src/devices/cpu/psx/gte.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/psx/gte.h b/src/devices/cpu/psx/gte.h
index 33755043704..01f16cde383 100644
--- a/src/devices/cpu/psx/gte.h
+++ b/src/devices/cpu/psx/gte.h
@@ -56,7 +56,7 @@ protected:
int44 operator+( int64_t add )
{
- int64_t value = ( ( m_value + add ) << 20 ) >> 20;
+ int64_t value = util::sext( m_value + add, 44 );
return int44( value,
m_positive_overflow || ( value < 0 && m_value >= 0 && add >= 0 ),