diff options
author | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-02-04 09:20:09 +0100 |
---|---|---|
committer | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-02-04 09:20:09 +0100 |
commit | 5cf4979c3ee7052bbb363bf75463fb861e6ac1e5 (patch) | |
tree | 33d4ad18def563520ccc0354e55708853bcc13e1 /src | |
parent | a1782d8d20a682c0158fa3df27333640ff94986a (diff) | |
download | lanes-5cf4979c3ee7052bbb363bf75463fb861e6ac1e5.tar.gz lanes-5cf4979c3ee7052bbb363bf75463fb861e6ac1e5.tar.bz2 lanes-5cf4979c3ee7052bbb363bf75463fb861e6ac1e5.zip |
Fix compilation error against Lua 5.1
Diffstat (limited to 'src')
-rw-r--r-- | src/lanes.c | 4 |
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); |