diff options
author | Thomas Herzog <karroffel@users.noreply.github.com> | 2017-06-20 23:11:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 23:11:38 +0200 |
commit | 3c1fd26bb0c2e97b927343e5488aa6d646e2e27c (patch) | |
tree | f26f8399299372281c99911315c5f7926f0c044a | |
parent | e80d61038b463a771b0bc07fa4af56890af64485 (diff) | |
parent | 40bb90fabdbb98af9235b224d2172e4c1aeeacc9 (diff) |
Merge pull request #9294 from karroffel/ptrcall-ref-const-ptr-fix
fixed ptrcall cast for const Ref<T>
-rw-r--r-- | core/reference.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/reference.h b/core/reference.h index afc097817a..4e2d6c36c0 100644 --- a/core/reference.h +++ b/core/reference.h @@ -344,7 +344,7 @@ struct PtrToArg<const Ref<T> &> { _FORCE_INLINE_ static Ref<T> convert(const void *p_ptr) { - return Ref<T>(reinterpret_cast<const T *>(p_ptr)); + return Ref<T>((T *)p_ptr); } }; |