mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Fixes #259 ("Warning on cast from farproc_t in Clang 19.1 for Windows")
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user