summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-10-04 13:31:46 (GMT)
committerGitHub <noreply@github.com>2022-10-04 13:31:46 (GMT)
commita322eb6147f243e1d45934ddfc1cfa6f69a0ddec (patch)
treeb95770b74d2748195f5babe54ef49b04ccfcd070 /c++/test
parentc114bd64b0662a010b0a9c502b921adfab00f1e6 (diff)
downloadhdf5-a322eb6147f243e1d45934ddfc1cfa6f69a0ddec.zip
hdf5-a322eb6147f243e1d45934ddfc1cfa6f69a0ddec.tar.gz
hdf5-a322eb6147f243e1d45934ddfc1cfa6f69a0ddec.tar.bz2
Fix static-cast format (#2141)
* Fix static-cast format * clang format fix
Diffstat (limited to 'c++/test')
-rw-r--r--c++/test/tfilter.cpp6
1 files 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<int> n++;
+ points[i][j] = static_cast<int>(n++);
}
}
// Write to the dataset then read back the values
- dataset.write(static_cast<void *> points, PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL,
+ dataset.write(static_cast<void *>(points), PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL,
xfer);
- dataset.read(static_cast<void *> check, PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL,
+ dataset.read(static_cast<void *>(check), PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL,
xfer);
// Check that the values read are the same as the values written