From bdbae42a8165b64f48b9a0699af9b1f8a83937f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3bal=20Arroyo?= Date: Mon, 16 Sep 2024 15:41:22 -0500 Subject: [PATCH] Fix waves 'double' to 'float' truncation warning (#1065) 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);