From 80672df530bff762047134c58c061e83ba082487 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 29 Apr 2024 09:17:07 +0200 Subject: remove uintptr_t again --- src/deep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/deep.c') diff --git a/src/deep.c b/src/deep.c index a1f078a..f3e6fd3 100644 --- a/src/deep.c +++ b/src/deep.c @@ -236,7 +236,7 @@ char const* push_deep_proxy( Universe* U, lua_State* L, DeepPrelude* prelude, in *proxy = prelude; // Get/create metatable for 'idfunc' (in this state) - lua_pushlightuserdata( L, (void*)(uintptr_t)(prelude->idfunc)); // DPC proxy idfunc + lua_pushlightuserdata(L, (void*) prelude->idfunc); // DPC proxy idfunc get_deep_lookup( L); // DPC proxy metatable? if( lua_isnil( L, -1)) // // No metatable yet. @@ -278,7 +278,7 @@ char const* push_deep_proxy( Universe* U, lua_State* L, DeepPrelude* prelude, in // Memorize for later rounds lua_pushvalue( L, -1); // DPC proxy metatable metatable - lua_pushlightuserdata( L, (void*)(uintptr_t)(prelude->idfunc)); // DPC proxy metatable metatable idfunc + lua_pushlightuserdata(L, (void*) prelude->idfunc); // DPC proxy metatable metatable idfunc set_deep_lookup( L); // DPC proxy metatable // 2 - cause the target state to require the module that exported the idfunc -- cgit v1.2.3-55-g6feb