Apply clang-tidy-11 fixes to CUDA files
[alexxy/gromacs.git] / src / gromacs / gpu_utils / pmalloc.cu
index 3a8f1058fe992c19a1822f90df4c6ae9461688cc..cef8b97d73c4e9254a2cf931c1f6696f9d4885a3 100644 (file)
@@ -66,7 +66,7 @@ void pmalloc(void** h_ptr, size_t nbytes)
     gmx::ensureNoPendingDeviceError("Could not allocate page-locked memory.");
 
     stat = cudaMallocHost(h_ptr, nbytes, flag);
-    sprintf(strbuf, "cudaMallocHost of size %d bytes failed", (int)nbytes);
+    sprintf(strbuf, "cudaMallocHost of size %d bytes failed", static_cast<int>(nbytes));
     CU_RET_ERR(stat, strbuf);
 }