diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-10-03 18:31:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 18:31:32 (GMT) |
commit | c114bd64b0662a010b0a9c502b921adfab00f1e6 (patch) | |
tree | 9bfe24cf7fa1618398e2a7e053483ff0c8043e51 /c++/test | |
parent | 1fb83da21531da8e531234fa6ab810b7a90d7ee9 (diff) | |
download | hdf5-c114bd64b0662a010b0a9c502b921adfab00f1e6.zip hdf5-c114bd64b0662a010b0a9c502b921adfab00f1e6.tar.gz hdf5-c114bd64b0662a010b0a9c502b921adfab00f1e6.tar.bz2 |
Fix mostly java warnings, and cpp cast (#2134)
Diffstat (limited to 'c++/test')
-rw-r--r-- | c++/test/tfilter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/c++/test/tfilter.cpp b/c++/test/tfilter.cpp index b5073e8..e47a44d 100644 --- a/c++/test/tfilter.cpp +++ b/c++/test/tfilter.cpp @@ -190,13 +190,15 @@ 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] = (int)n++; + points[i][j] = static_cast<int> n++; } } // Write to the dataset then read back the values - dataset.write((void *)points, PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL, xfer); - dataset.read((void *)check, PredType::NATIVE_INT, DataSpace::ALL, DataSpace::ALL, xfer); + 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, + xfer); // Check that the values read are the same as the values written for (i = 0; i < size[0]; i++) |