summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-conversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-conversion.cpp')
-rw-r--r--source/slang/slang-check-conversion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-conversion.cpp b/source/slang/slang-check-conversion.cpp
index 0c06fb113..74151a4bb 100644
--- a/source/slang/slang-check-conversion.cpp
+++ b/source/slang/slang-check-conversion.cpp
@@ -1327,7 +1327,7 @@ bool SemanticsVisitor::_coerce(
// For general types of implicit conversions, we issue a warning, unless `fromExpr`
// is a known constant and we know it won't cause a problem.
bool shouldEmitGeneralWarning = true;
- if (isScalarIntegerType(toType))
+ if (isScalarIntegerType(toType) || isHalfType(toType))
{
if (auto intVal = tryFoldIntegerConstantExpression(
fromExpr,