summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/checkutils_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/checkutils_unittest.cc b/src/utils/checkutils_unittest.cc
index 981e08f72..0d09143c3 100644
--- a/src/utils/checkutils_unittest.cc
+++ b/src/utils/checkutils_unittest.cc
@@ -130,14 +130,14 @@ TEST_CASE("CheckUtils")
SECTION("returnNullptr")
{
REQUIRE(testReturnNullptr(nullptr) == 0);
- REQUIRE(testReturnNullptr((void*)1) == 1);
+ REQUIRE(testReturnNullptr(reinterpret_cast<void*>(1)) == 1);
}
SECTION("returnNullptrV")
{
testReturnNullptrV(nullptr);
REQUIRE(flag == false);
- testReturnNullptrV((void*)1);
+ testReturnNullptrV(reinterpret_cast<void*>(1));
REQUIRE(flag == true);
}