diff options
Diffstat (limited to 'src/lanes_private.h')
-rw-r--r-- | src/lanes_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lanes_private.h b/src/lanes_private.h index b8d26d3..839a51f 100644 --- a/src/lanes_private.h +++ b/src/lanes_private.h | |||
@@ -83,7 +83,7 @@ static inline Lane* get_lane_from_registry( lua_State* L) | |||
83 | STACK_GROW( L, 1); | 83 | STACK_GROW( L, 1); |
84 | STACK_CHECK_START_REL(L, 0); | 84 | STACK_CHECK_START_REL(L, 0); |
85 | CANCEL_TEST_KEY.query_registry(L); | 85 | CANCEL_TEST_KEY.query_registry(L); |
86 | Lane* const s = static_cast<Lane*>(lua_touserdata(L, -1)); // lightuserdata (true 's_lane' pointer) / nil | 86 | Lane* const s{ lua_touserdata<Lane>(L, -1) }; // lightuserdata (true 's_lane' pointer) / nil |
87 | lua_pop( L, 1); | 87 | lua_pop( L, 1); |
88 | STACK_CHECK( L, 0); | 88 | STACK_CHECK( L, 0); |
89 | return s; | 89 | return s; |