aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lanes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lanes.c b/src/lanes.c
index 270c01d..64c144c 100644
--- a/src/lanes.c
+++ b/src/lanes.c
@@ -216,7 +216,9 @@ static void securize_debug_threadname( lua_State* L, struct s_lane* s)
216 STACK_GROW( L, 3); 216 STACK_GROW( L, 3);
217 lua_getuservalue( L, 1); 217 lua_getuservalue( L, 1);
218 lua_newtable( L); 218 lua_newtable( L);
219 s->debug_name = lua_pushstring( L, s->debug_name); 219 // Lua 5.1 can't do 's->debug_name = lua_pushstring( L, s->debug_name);'
220 lua_pushstring( L, s->debug_name);
221 s->debug_name = lua_tostring( L, -1);
220 lua_rawset( L, -3); 222 lua_rawset( L, -3);
221 lua_pop( L, 1); 223 lua_pop( L, 1);
222 STACK_END( L, 0); 224 STACK_END( L, 0);