diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-03-17 19:22:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 19:22:02 (GMT) |
commit | 35d6091ab7c09ec5d450860ba9795e6abe430c8c (patch) | |
tree | 253e1f47c0998cb215f22036e07ddaa2f38c84d4 /test/tselect.c | |
parent | af54fd532c470fa0bb76aa924dc695a86d3b0f9d (diff) | |
download | hdf5-35d6091ab7c09ec5d450860ba9795e6abe430c8c.zip hdf5-35d6091ab7c09ec5d450860ba9795e6abe430c8c.tar.gz hdf5-35d6091ab7c09ec5d450860ba9795e6abe430c8c.tar.bz2 |
Cleans up a couple of MSVC warnings in testhdf5 (#475)
* Fixes a few testhdf5 warnings raised in Visual Studio
Visual Studio is grumpier about treating pointers like integers than
gcc.
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/tselect.c')
-rw-r--r-- | test/tselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tselect.c b/test/tselect.c index cea8301..1bfb663 100644 --- a/test/tselect.c +++ b/test/tselect.c @@ -5381,9 +5381,9 @@ test_select_hyper_union_3d(void) /* Allocate write & read buffers */ wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE4_DIM1 * SPACE4_DIM2 * SPACE4_DIM3); - CHECK(wbuf, NULL, "HDmalloc"); + CHECK_PTR(wbuf, "HDmalloc"); rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), SPACE3_DIM1 * SPACE3_DIM2); - CHECK(rbuf, NULL, "HDcalloc"); + CHECK_PTR(rbuf, "HDcalloc"); /* Initialize write buffer */ for (i = 0, tbuf = wbuf; i < SPACE4_DIM1; i++) |