Skip to content

Commit

Permalink
Fix waves 'double' to 'float' truncation warning (#1065)
Browse files Browse the repository at this point in the history
Signed-off-by: Crola1702 <[email protected]>
  • Loading branch information
Crola1702 committed Sep 16, 2024
1 parent a5e13c5 commit 988de19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/waves.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,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);

Expand Down

0 comments on commit 988de19

Please sign in to comment.