summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-08-05 11:53:57 -0700
committerNicolas Noble <pixel@nobis-crew.org>2013-08-05 11:53:57 -0700
commitcd5da6097812baf125c2dc4f1d12e1a3f4985464 (patch)
treeff16f50f3bdd9dad22ec6a1020b1c577a7969ad0 /tests
parent911858d8d7cab0108f1c14abd676ad37ccb9c95a (diff)
Greatly simplifying the LuaYield mechanism so to avoid double-recursive calls in resume().
Diffstat (limited to 'tests')
-rw-r--r--tests/test-Lua.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-Lua.cc b/tests/test-Lua.cc
index ed6e754..9337d35 100644
--- a/tests/test-Lua.cc
+++ b/tests/test-Lua.cc
@@ -115,7 +115,7 @@ int sLua_ObjectTest::ObjectTest_proceed_static(Lua & L, int n, int caller) throw
break;
case OBJECTTEST_YIELDTEST:
- L.yield(Future<int>([=]() mutable {
+ return L.yield(Future<int>([=]() mutable {
int y = L.tonumber();
L.pop();
L.push((lua_Number) y + 1);