summaryrefslogtreecommitdiff
path: root/libpcsxcore/ix86/ix86.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/ix86/ix86.c')
-rw-r--r--libpcsxcore/ix86/ix86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/ix86/ix86.c b/libpcsxcore/ix86/ix86.c
index 1525ac37..ef0e0d3a 100644
--- a/libpcsxcore/ix86/ix86.c
+++ b/libpcsxcore/ix86/ix86.c
@@ -54,7 +54,7 @@ void x86SetJ32(u32 *j32) {
void x86Align(int bytes) {
// fordward align
- x86Ptr = (s8*)(((u32)x86Ptr + bytes) & ~(bytes - 1));
+ x86Ptr = (s8*)(((u32)x86Ptr + bytes - 1) & ~(bytes - 1));
}
#define SIB 4