x86: Fix typo in ffi_prep_go_closure

Used the wrong register for THISCALL and FASTCALL.
This commit is contained in:
Richard Henderson
2014-11-14 13:05:14 +01:00
parent c9f5b6648b
commit dea49e2020

View File

@@ -527,7 +527,7 @@ ffi_prep_go_closure (ffi_go_closure* closure, ffi_cif* cif,
break;
case FFI_THISCALL:
case FFI_FASTCALL:
dest = ffi_go_closure_ECX;
dest = ffi_go_closure_EAX;
break;
case FFI_STDCALL:
case FFI_PASCAL: