Fix clang-tidy warnings for clang 7
[alexxy/gromacs.git] / src / gromacs / hardware / identifyavx512fmaunits.cpp
index 8eabb5784fe2fdc50ad3540c8c15ab939c0f756c..a5a3b6dc751492e59c77c4d8e65a33c5cdb4006c 100644 (file)
@@ -227,7 +227,7 @@ timeFmaOnlyLoop(uint64_t loopCount)
 bool
 checkDualAvx512FmaUnits()
 {
-    uint64_t timeFmaAndShuf = 1e9;             // Large value
+    uint64_t timeFmaAndShuf = static_cast<uint64_t>(1e9);             // Large value
 
     // Make sure the CPU is in AVX512 mode by executing a fairly long loop.
     // Use the return value to make sure it is not optimized away. Later invocations