diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-29 09:17:07 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-29 09:17:07 +0200 |
commit | 80672df530bff762047134c58c061e83ba082487 (patch) | |
tree | c18b977c62b98ac154d67927a0d2e8bc56fe5358 /src/deep.c | |
parent | 28c7e6b487242f76cc4a945cc462612f90caee7e (diff) | |
download | lanes-3.17.0.tar.gz lanes-3.17.0.tar.bz2 lanes-3.17.0.zip |
remove uintptr_t againv3.17.0
Diffstat (limited to '')
-rw-r--r-- | src/deep.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -236,7 +236,7 @@ char const* push_deep_proxy( Universe* U, lua_State* L, DeepPrelude* prelude, in | |||
236 | *proxy = prelude; | 236 | *proxy = prelude; |
237 | 237 | ||
238 | // Get/create metatable for 'idfunc' (in this state) | 238 | // Get/create metatable for 'idfunc' (in this state) |
239 | lua_pushlightuserdata( L, (void*)(uintptr_t)(prelude->idfunc)); // DPC proxy idfunc | 239 | lua_pushlightuserdata(L, (void*) prelude->idfunc); // DPC proxy idfunc |
240 | get_deep_lookup( L); // DPC proxy metatable? | 240 | get_deep_lookup( L); // DPC proxy metatable? |
241 | 241 | ||
242 | if( lua_isnil( L, -1)) // // No metatable yet. | 242 | 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 | |||
278 | 278 | ||
279 | // Memorize for later rounds | 279 | // Memorize for later rounds |
280 | lua_pushvalue( L, -1); // DPC proxy metatable metatable | 280 | lua_pushvalue( L, -1); // DPC proxy metatable metatable |
281 | lua_pushlightuserdata( L, (void*)(uintptr_t)(prelude->idfunc)); // DPC proxy metatable metatable idfunc | 281 | lua_pushlightuserdata(L, (void*) prelude->idfunc); // DPC proxy metatable metatable idfunc |
282 | set_deep_lookup( L); // DPC proxy metatable | 282 | set_deep_lookup( L); // DPC proxy metatable |
283 | 283 | ||
284 | // 2 - cause the target state to require the module that exported the idfunc | 284 | // 2 - cause the target state to require the module that exported the idfunc |