Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbowen42 committed Jan 7, 2025
1 parent 40b93c0 commit 371dfde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ FROM ghcr.io/llnl/radiuss:clang-14-ubuntu-22.04 AS clang14_style
ENV GTEST_COLOR=1
COPY . /home/raja/workspace
WORKDIR /home/raja/workspace/build
RUN clang-format --version \
cmake -DENABLE_CLANGFORMAT=ON ../ \
RUN clang-format --version && \
cmake -DENABLE_CLANGFORMAT=ON ../ && \
make style

FROM ghcr.io/llnl/radiuss:clang-15-ubuntu-22.04 AS clang15
Expand Down
8 changes: 4 additions & 4 deletions include/RAJA/internal/Iterators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ RAJA_HOST_DEVICE bool is_addition_overflow(Type lhs, DifferenceType rhs)
{
if (std::is_unsigned<Type>::value)
{
if ((rhs > 0) && (lhs > std::numeric_limits<Type>::max() - rhs))
return true;
if ((rhs < 0) && (lhs < std::numeric_limits<Type>::min() - rhs))
return true;
if ((rhs > 0) && (lhs > std::numeric_limits<Type>::max() - rhs))
return true;
if ((rhs < 0) && (lhs < std::numeric_limits<Type>::min() - rhs))
return true;
}
return false;
}
Expand Down

0 comments on commit 371dfde

Please sign in to comment.