From f9cb20984b08515f57229d841d2e7993a7f007e4 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sun, 1 Jul 2007 20:43:32 +0000 Subject: [PATCH] this has the most painful bug to debug ever, fixed linux this calls not restoring the stack when the function didnt have arguments. --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401036 --- extensions/bintools/jit_call.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/bintools/jit_call.cpp b/extensions/bintools/jit_call.cpp index b9a567e4..7270e2d3 100644 --- a/extensions/bintools/jit_call.cpp +++ b/extensions/bintools/jit_call.cpp @@ -585,7 +585,7 @@ skip_retbuffer: jit_uint32_t total = (Needs_Retbuf) ? g_StackUsage + sizeof(void *) : g_StackUsage; Write_RectifyStack(jit, total); #elif defined PLATFORM_POSIX - if (ParamCount) + if (hasParams) { /* Pop all parameters from the stack */ Write_RectifyStack(jit, g_StackUsage);