From ad0b22a302b7a501bebc6c8a0db3e7747d99eaab Mon Sep 17 00:00:00 2001 From: Crola1702 Date: Mon, 16 Sep 2024 12:36:47 -0500 Subject: [PATCH] Fix truncation warning Signed-off-by: Crola1702 --- test/integration/waves.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/waves.cc b/test/integration/waves.cc index 284c4544a..582fe5028 100644 --- a/test/integration/waves.cc +++ b/test/integration/waves.cc @@ -167,11 +167,11 @@ TEST_F(WavesTest, Waves) (*vsParams)["dir0"].InitializeBuffer(2); (*vsParams)["dir0"].UpdateBuffer(dir0); - float dir1[2] = {-0.7, 0.7}; + float dir1[2] = {-0.7f, 0.7f}; (*vsParams)["dir1"].InitializeBuffer(2); (*vsParams)["dir1"].UpdateBuffer(dir1); - float dir2[2] = {0.7, 0.7}; + float dir2[2] = {0.7f, 0.7f}; (*vsParams)["dir2"].InitializeBuffer(2); (*vsParams)["dir2"].UpdateBuffer(dir2);