From 1ca8f73c322fb72b17fff3075ae2e0074279026d Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Mon, 8 Jan 2024 11:00:21 -0800 Subject: [PATCH] fix warning --- samples/99_matrixexperiments/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/99_matrixexperiments/main.cpp b/samples/99_matrixexperiments/main.cpp index 32deef1..5d72ece 100644 --- a/samples/99_matrixexperiments/main.cpp +++ b/samples/99_matrixexperiments/main.cpp @@ -64,7 +64,7 @@ static void fill_matrix(std::vector& M, size_t numRows, size_t numCols) if (fixedData) { for (size_t r = 0; r < numRows; r++) { for (size_t c = 0; c < numCols; c++) { - M[r * numCols + c] = r + c; + M[r * numCols + c] = static_cast(r + c); } } } else {