From 5cc6293407f68302113c1737ef8bc07074135e2c Mon Sep 17 00:00:00 2001 From: 20k Date: Fri, 27 Jan 2023 06:04:55 +0000 Subject: [PATCH] fix unused variable on linux --- library/LuaApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index babf2f7c0..04f771928 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -2980,9 +2980,9 @@ static uintptr_t get_root_address_of_heap_object(uintptr_t ptr) //is in the heap/valid static int msize_address(uintptr_t ptr) { + #ifdef _WIN32 void* vptr = address_to_pointer(ptr); - #ifdef _WIN32 if (vptr) return _msize(vptr); #endif