summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-04-13 16:40:36 -0700
committerGitHub <noreply@github.com>2023-04-13 16:40:36 -0700
commit3bbac5f16e9dd47acd2132c0bb2a43393831c450 (patch)
treebddf137c252c164f7cd08f1f58b559b96ee49419 /tests
parent3b4a50d74059a26af2ed8c37fb2042f33ba7cf2c (diff)
Warn on float-to-double coercion for arguments. (#2802)
* Warn on float-to-double coercion for arguments. * Fix test. * Rename. * Fixup. --------- Co-authored-by: Yong He <yhe@nvidia.com>
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));