diff --git a/projects/hip-tests/catch/unit/memory/hipHostMallocTests.cc b/projects/hip-tests/catch/unit/memory/hipHostMallocTests.cc index b0f3d4dbfa..9b25f613ac 100644 --- a/projects/hip-tests/catch/unit/memory/hipHostMallocTests.cc +++ b/projects/hip-tests/catch/unit/memory/hipHostMallocTests.cc @@ -46,12 +46,12 @@ TEST_CASE("Unit_hipHostMalloc_ArgValidation") { } SECTION("Size as max(size_t)") { - HIP_CHECK_ERROR(hipHostMalloc(&ptr, std::numeric_limits::max()), + HIP_CHECK_ERROR(hipHostMalloc(&ptr, (std::numeric_limits::max)()), hipErrorMemoryAllocation); } SECTION("Flags as max(uint)") { - HIP_CHECK_ERROR(hipHostMalloc(&ptr, allocSize, std::numeric_limits::max()), + HIP_CHECK_ERROR(hipHostMalloc(&ptr, allocSize, (std::numeric_limits::max)()), hipErrorInvalidValue); }