File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class DynamicLibrary
8383 fmt::print (" function {} is not loaded correctly\n " , #f); \
8484 _load_success = false ; \
8585 } \
86- _function_pointers[#f] = ptr; \
86+ _function_pointers[#f] = reinterpret_cast < void *>( ptr); \
8787 }
8888
8989#define IS_DYLIB_LOAD_SUCCESS _load_success
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ bool load_library(const std::string &path)
5555 {
5656 DYLIB_LOAD_FUNCTION (GRBloadenvinternal);
5757 DYLIB_LOAD_FUNCTION (GRBemptyenvinternal);
58- _function_pointers[" GRBloadenv" ] = &GRBloadenv_1200;
59- _function_pointers[" GRBemptyenv" ] = &GRBemptyenv_1200;
58+ _function_pointers[" GRBloadenv" ] = reinterpret_cast < void *>( &GRBloadenv_1200) ;
59+ _function_pointers[" GRBemptyenv" ] = reinterpret_cast < void *>( &GRBemptyenv_1200) ;
6060
6161 // Now check there is no nullptr in _function_pointers
6262 _load_success = true ;
You can’t perform that action at this time.
0 commit comments