Explicit float literal

This commit is contained in:
Paul Ferrand 2020-01-05 00:22:26 +01:00
parent 78a4a63459
commit 53c620cd9b

View file

@ -54,7 +54,7 @@ TEST_CASE("[ADSREnvelope] Basic state")
out = envelope.getNextValue();
REQUIRE(approxEqual<float>(output, expected));
absl::c_fill(output, -1.0);
absl::c_fill(output, -1.0f);
envelope.getBlock(absl::MakeSpan(output));
REQUIRE(approxEqual<float>(output, expected));
}
@ -70,7 +70,7 @@ TEST_CASE("[ADSREnvelope] Attack")
REQUIRE(approxEqual<float>(output, expected));
envelope.reset(2, 0);
absl::c_fill(output, -1.0);
absl::c_fill(output, -1.0f);
envelope.getBlock(absl::MakeSpan(output));
REQUIRE(approxEqual<float>(output, expected));
}