Skip to content

Commit ca75618

Browse files
committed
Fixes #259 ("Warning on cast from farproc_t in Clang 19.1 for Windows")
1 parent 061bc6f commit ca75618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/interprocess/detail/win32_api.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ struct function_address_holder
10381038
}
10391039
10401040
public:
1041-
static farproc_t get(const unsigned int id)
1041+
static void* get(const unsigned int id)
10421042
{
10431043
BOOST_ASSERT(id < (unsigned int)NumFunction);
10441044
for(unsigned i = 0; FunctionStates[id] < 2; ++i){
@@ -1054,7 +1054,7 @@ struct function_address_holder
10541054
sleep_tick();
10551055
}
10561056
}
1057-
return FunctionAddresses[id];
1057+
return reinterpret_cast<void*>(FunctionAddresses[id]);
10581058
}
10591059
};
10601060

0 commit comments

Comments
 (0)