From a322eb6147f243e1d45934ddfc1cfa6f69a0ddec Mon Sep 17 00:00:00 2001 From: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Tue, 4 Oct 2022 08:31:46 -0500 Subject: Fix static-cast format (#2141) * Fix static-cast format * clang format fix --- c++/test/tfilter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c++/test/tfilter.cpp b/c++/test/tfilter.cpp index e47a44d..b37e329 100644 --- a/c++/test/tfilter.cpp +++ b/c++/test/tfilter.cpp @@ -190,14 +190,14 @@ test_szip_filter(H5File &file1) hsize_t i, j, n; for (i = n = 0; i < size[0]; i++) { for (j = 0; j < size[1]; j++) { - points[i][j] = static_cast n++; + points[i][j] = static_cast(n++); } } // Write to the dataset then read back the values - dataset.write(static_cast points, PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL, + dataset.write(static_cast(points), PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL, xfer); - dataset.read(static_cast check, PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL, + dataset.read(static_cast(check), PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL, xfer); // Check that the values read are the same as the values written -- cgit v0.12