summaryrefslogtreecommitdiff
path: root/source/slang/slang-reflection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-reflection.cpp')
-rw-r--r--source/slang/slang-reflection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-reflection.cpp b/source/slang/slang-reflection.cpp
index 037bc2d97..fe709222b 100644
--- a/source/slang/slang-reflection.cpp
+++ b/source/slang/slang-reflection.cpp
@@ -183,7 +183,7 @@ SLANG_API const char* spReflectionUserAttribute_GetArgumentValueString(SlangRefl
if (auto cexpr = as<StringLiteralExpr>(userAttr->args[index]))
{
if (bufLen)
- *bufLen = cexpr->token.Content.size();
+ *bufLen = cexpr->token.Content.getLength();
return cexpr->token.Content.begin();
}
return nullptr;
@@ -1564,7 +1564,7 @@ SLANG_API const char* spReflection_getHashedString(
auto slices = programLayout->hashedStringLiteralPool.getAdded();
auto slice = slices[Index(index)];
- *outCount = slice.size();
+ *outCount = slice.getLength();
return slice.begin();
}