aboutsummaryrefslogtreecommitdiff
path: root/src/lanes_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lanes_private.h')
-rw-r--r--src/lanes_private.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lanes_private.h b/src/lanes_private.h
index 2fbbae9..b8d26d3 100644
--- a/src/lanes_private.h
+++ b/src/lanes_private.h
@@ -80,13 +80,12 @@ struct Lane
80 80
81static inline Lane* get_lane_from_registry( lua_State* L) 81static inline Lane* get_lane_from_registry( lua_State* L)
82{ 82{
83 Lane* s;
84 STACK_GROW( L, 1); 83 STACK_GROW( L, 1);
85 STACK_CHECK( L, 0); 84 STACK_CHECK_START_REL(L, 0);
86 CANCEL_TEST_KEY.query_registry(L); 85 CANCEL_TEST_KEY.query_registry(L);
87 s = (Lane*) lua_touserdata( L, -1); // lightuserdata (true 's_lane' pointer) / nil 86 Lane* const s = static_cast<Lane*>(lua_touserdata(L, -1)); // lightuserdata (true 's_lane' pointer) / nil
88 lua_pop( L, 1); 87 lua_pop( L, 1);
89 STACK_END( L, 0); 88 STACK_CHECK( L, 0);
90 return s; 89 return s;
91} 90}
92 91