about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/complext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/complext.h b/src/include/complext.h
index 3893268d..0866da25 100644
--- a/src/include/complext.h
+++ b/src/include/complext.h
@@ -12,7 +12,7 @@ typedef struct complexf_s { float r; float i;} complexf_t;
 inline complexf_t to_complexf(x64emu_t* emu, int i) {
     complexf_t ret; 
     ret.r = emu->xmm[i].f[0];
-    ret.i = emu->xmm[i+1].f[0];
+    ret.i = emu->xmm[i].f[1];
     return ret;
 }
 inline complex_t to_complex(x64emu_t* emu, int i) {