From b43b88d2686c64c8e298251dc29c4f8c3e14ebe1 Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Tue, 24 Oct 2023 08:05:22 +0200 Subject: [PATCH] [skip-tests] Address review feedback --- .../cuda/std/detail/libcxx/include/__iterator/advance.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h index 419410d757a..238feafc816 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h @@ -26,7 +26,7 @@ #include "../cstdlib" #if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) -#pragma GCC system_header +# pragma GCC system_header #else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER #endif // !_CCCL_COMPILER_NVHPC @@ -118,7 +118,9 @@ struct __fn _LIBCUDACXX_INLINE_VISIBILITY static constexpr auto __magnitude_geq(_Iter_difference __a, _Iter_difference __b) noexcept { - return __a == 0 ? __b == 0 : __a > 0 ? __a >= __b : __a <= __b; + return __a == 0 ? __b == 0 : // + __a > 0 ? __a >= __b + : __a <= __b; }; public: