Fixes #259 ("Warning on cast from farproc_t in Clang 19.1 for Windows")

This commit is contained in:
Ion Gaztañaga
2025-04-14 21:07:17 +02:00
parent 061bc6f8df
commit ca7561844b

View File

@@ -1038,7 +1038,7 @@ struct function_address_holder
}
public:
static farproc_t get(const unsigned int id)
static void* get(const unsigned int id)
{
BOOST_ASSERT(id < (unsigned int)NumFunction);
for(unsigned i = 0; FunctionStates[id] < 2; ++i){
@@ -1054,7 +1054,7 @@ struct function_address_holder
sleep_tick();
}
}
return FunctionAddresses[id];
return reinterpret_cast<void*>(FunctionAddresses[id]);
}
};