Skip to content

Commit

Permalink
Merge pull request #1066 from gazebosim/Crola1702/7_to_8-16_09_2024
Browse files Browse the repository at this point in the history
7 ➡️ 8 Fix waves 'double' to 'float' truncation warning
  • Loading branch information
iche033 authored Sep 18, 2024
2 parents 64820c0 + f20d504 commit e227df6
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 e227df6

Please sign in to comment.