summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/hlsl-intrinsic/matrix-double.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hlsl-intrinsic/matrix-double.slang b/tests/hlsl-intrinsic/matrix-double.slang
index 08bd78cee..31ec54f8e 100644
--- a/tests/hlsl-intrinsic/matrix-double.slang
+++ b/tests/hlsl-intrinsic/matrix-double.slang
@@ -101,7 +101,7 @@ void test1(inout FloatMatrix ft, inout FloatMatrix f, int idx)
{
float scalarVs[] = { 1, 10, 100, 1000 };
- ft += FloatMatrix(IntMatrix(log10(makeFloatMatrix(scalarVs[idx])) + makeFloatMatrix(0.5f)));
+ ft += FloatMatrix(IntMatrix(log10(makeFloatMatrix(Float(scalarVs[idx]))) + makeFloatMatrix(0.5f)));
}
ft += abs(f * makeFloatMatrix(4) - makeFloatMatrix(2.0f));