Fix double to float conversion warning on MSVC

BUG=

Change-Id: Iccae33f4c925c554e73e40a70d490a26d54949bf
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9001
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/tests/end2end/TextureFormatTests.cpp b/src/tests/end2end/TextureFormatTests.cpp
index 5e7ba1c..634bd96 100644
--- a/src/tests/end2end/TextureFormatTests.cpp
+++ b/src/tests/end2end/TextureFormatTests.cpp
@@ -435,7 +435,7 @@
         ASSERT(formatInfo.type == Float);
 
         std::vector<float> textureData = {+0.0f,  -0.0f, 1.0f,     1.0e-29f,
-                                          1.0e29, NAN,   INFINITY, -INFINITY};
+                                          1.0e29f, NAN,   INFINITY, -INFINITY};
 
         DoFloatFormatSamplingTest(formatInfo, textureData, textureData);
         DoFormatRenderingTest(formatInfo, textureData, textureData);
@@ -452,7 +452,7 @@
             textureData.push_back(Float32ToFloat16(value));
         }
 
-        DoFloatFormatSamplingTest(formatInfo, textureData, uncompressedData, 1.0e-5);
+        DoFloatFormatSamplingTest(formatInfo, textureData, uncompressedData, 1.0e-5f);
 
         // Use a special expectation that knows that all Float16 NaNs are equivalent.
         DoFormatRenderingTest(formatInfo, uncompressedData, textureData,