mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Remove workaround for warning C4180 (causes issues on other compilers)
This commit is contained in:
parent
b34eeb0183
commit
ec02b1c716
1 changed files with 2 additions and 2 deletions
|
@ -1304,9 +1304,9 @@ TEST_CASE("UserdataApi")
|
||||||
auto dtor = [](lua_State* l, void* data) {
|
auto dtor = [](lua_State* l, void* data) {
|
||||||
dtorhits += *(int*)data;
|
dtorhits += *(int*)data;
|
||||||
};
|
};
|
||||||
CHECK((void*)lua_getuserdatadtor(L, 42) == nullptr); // (void*) silences warning C4180 on VS 2017
|
CHECK(lua_getuserdatadtor(L, 42) == nullptr);
|
||||||
lua_setuserdatadtor(L, 42, dtor);
|
lua_setuserdatadtor(L, 42, dtor);
|
||||||
CHECK((void*)lua_getuserdatadtor(L, 42) == dtor);
|
CHECK(lua_getuserdatadtor(L, 42) == dtor);
|
||||||
|
|
||||||
// light user data
|
// light user data
|
||||||
int lud;
|
int lud;
|
||||||
|
|
Loading…
Add table
Reference in a new issue