From 4ac4c28a3bcd1a56d10c832004d65773ff91bc2c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 25 Aug 2009 15:09:27 +0000 Subject: [PATCH] (svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion --- src/3rdparty/squirrel/squirrel/sqvm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/3rdparty/squirrel/squirrel/sqvm.cpp b/src/3rdparty/squirrel/squirrel/sqvm.cpp index c3cdeae304..2c277d996d 100644 --- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -774,9 +774,8 @@ common_call: _GUARD(gen->Yield(this)); Return(1, ct_target, clo); STK(ct_target) = gen; - CLEARSTACK(last_top); - continue; } + CLEARSTACK(last_top); } continue; case OT_NATIVECLOSURE: {