Fix nightly build
[alexxy/gromacs.git] / src / gromacs / nbnxm / opencl / nbnxm_ocl.cpp
index 365b404ad60aeb135838d9b7f77a5bc80d9ac2a0..1a0fbd77051b01efd2e51cc8865385366c76093d 100644 (file)
@@ -552,7 +552,7 @@ void gpu_launch_kernel(gmx_nbnxn_ocl_t                  *nb,
 
     // The OpenCL kernel takes int as second to last argument because bool is
     // not supported as a kernel argument type (sizeof(bool) is implementation defined).
-    const int computeFshift = forceFlags.computeVirial;
+    const int computeFshift = static_cast<int>(forceFlags.computeVirial);
     if (useLjCombRule(nb->nbparam->vdwtype))
     {
         const auto kernelArgs = prepareGpuKernelArguments(kernel, config,