summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2025-05-23 00:57:08 -0400
committerGitHub <noreply@github.com>2025-05-23 04:57:08 +0000
commit6209f69f335a604604a5032b0f5c38b4b8bc861a (patch)
tree4978f52e3a37b51cb7c198366c2e7e127d361215 /source
parent3072cfea95aad2a9ddab0f517c8f18f634442a27 (diff)
Add default constructor for Ptr type (#7214)
* Add default constructor for Ptr type * Make pointers c-style type, remove __init() constructor
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-check-conversion.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-conversion.cpp b/source/slang/slang-check-conversion.cpp
index 705da89e3..fcbc83673 100644
--- a/source/slang/slang-check-conversion.cpp
+++ b/source/slang/slang-check-conversion.cpp
@@ -246,7 +246,8 @@ bool SemanticsVisitor::isCStyleType(Type* type, HashSet<Type*>& isVisit)
// 1. It has to be basic scalar, vector or matrix type, or user-defined struct.
if (as<VectorExpressionType>(type) || as<MatrixExpressionType>(type) ||
- as<BasicExpressionType>(type) || isDeclRefTypeOf<EnumDecl>(type).getDecl())
+ as<BasicExpressionType>(type) || isDeclRefTypeOf<EnumDecl>(type).getDecl() ||
+ as<PtrType>(type))
return cacheResult(true);