summaryrefslogtreecommitdiffstats
path: root/source/slang/reflection.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-28 12:17:47 -0700
committerGitHub <noreply@github.com>2017-06-28 12:17:47 -0700
commit16613ed981fc5dc38966f5108e85b1aee36ef92f (patch)
tree0082315629ad76add2ebffe04dcd1f64943c0a9f /source/slang/reflection.cpp
parentb8e31688c6826475b5199468aedea0bc44c0adc1 (diff)
parentff53669ed918c87d15ddea2d07fda84d4c8eff5d (diff)
Merge pull request #50 from tfoleyNV/literal-fix-fix
Store integer literals at high precision in AST
Diffstat (limited to 'source/slang/reflection.cpp')
-rw-r--r--source/slang/reflection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/reflection.cpp b/source/slang/reflection.cpp
index 89fd94093..40cd7061b 100644
--- a/source/slang/reflection.cpp
+++ b/source/slang/reflection.cpp
@@ -233,7 +233,7 @@ SLANG_API unsigned int spReflectionType_GetRowCount(SlangReflectionType* inType)
if(auto matrixType = dynamic_cast<MatrixExpressionType*>(type))
{
- return GetIntVal(matrixType->getRowCount());
+ return (unsigned int) GetIntVal(matrixType->getRowCount());
}
else if(auto vectorType = dynamic_cast<VectorExpressionType*>(type))
{
@@ -254,11 +254,11 @@ SLANG_API unsigned int spReflectionType_GetColumnCount(SlangReflectionType* inTy
if(auto matrixType = dynamic_cast<MatrixExpressionType*>(type))
{
- return GetIntVal(matrixType->getColumnCount());
+ return (unsigned int) GetIntVal(matrixType->getColumnCount());
}
else if(auto vectorType = dynamic_cast<VectorExpressionType*>(type))
{
- return GetIntVal(vectorType->elementCount);
+ return (unsigned int) GetIntVal(vectorType->elementCount);
}
else if( auto basicType = dynamic_cast<BasicExpressionType*>(type) )
{