diff options
Diffstat (limited to 'source/blender/blenlib/BLI_function_ref.hh')
-rw-r--r-- | source/blender/blenlib/BLI_function_ref.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_function_ref.hh b/source/blender/blenlib/BLI_function_ref.hh index 9a38176c988..bc386322c5d 100644 --- a/source/blender/blenlib/BLI_function_ref.hh +++ b/source/blender/blenlib/BLI_function_ref.hh @@ -116,7 +116,7 @@ template<typename Ret, typename... Params> class FunctionRef<Ret(Params...)> { !std::is_same_v<std::remove_cv_t<std::remove_reference_t<Callable>>, FunctionRef>))> FunctionRef(Callable &&callable) : callback_(callback_fn<typename std::remove_reference_t<Callable>>), - callable_(reinterpret_cast<intptr_t>(&callable)) + callable_(intptr_t(&callable)) { } |