From c40f10b704b8bd5a744cc9b3964344585436b1ac Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 4 Feb 2021 13:50:51 -0800 Subject: [gfx] Shader-object driven shader compilation. (#1688) --- source/core/slang-smart-pointer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/core/slang-smart-pointer.h') diff --git a/source/core/slang-smart-pointer.h b/source/core/slang-smart-pointer.h index 53ac010ed..eb9fe7be5 100644 --- a/source/core/slang-smart-pointer.h +++ b/source/core/slang-smart-pointer.h @@ -114,9 +114,9 @@ namespace Slang template RefPtr(RefPtr const& p, typename EnableIf::Value, void>::type * = 0) - : pointer((U*) p) + : pointer(static_cast(p)) { - addReference((U*) p); + addReference(static_cast(p)); } #if 0 @@ -200,7 +200,7 @@ namespace Slang ~RefPtr() { - releaseReference((Slang::RefObject*) pointer); + releaseReference(static_cast(pointer)); } T& operator*() const -- cgit v1.2.3