dawn/node: Fix GCC warning

About comparisons of different datatypes

Bug: dawn:1123
Change-Id: Iefdb8195041b824f63344a0b367fd5bebbe3ca85
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86308
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/src/dawn/node/interop/Core.h b/src/dawn/node/interop/Core.h
index 1ad90ad..8408d15 100644
--- a/src/dawn/node/interop/Core.h
+++ b/src/dawn/node/interop/Core.h
@@ -530,8 +530,8 @@
             }
 
             // Check for out of range and throw a type error.
-            constexpr T kMin = std::numeric_limits<T>::min();
-            constexpr T kMax = std::numeric_limits<T>::max();
+            constexpr double kMin = static_cast<double>(std::numeric_limits<T>::min());
+            constexpr double kMax = static_cast<double>(std::numeric_limits<T>::max());
             if (!(kMin <= doubleValue && doubleValue <= kMax)) {
                 return Error("Values are out of the range of that integer.");
             }