From b08b09520bb73ded804855c057be4229452665c0 Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de> Date: Fri, 16 Jun 2023 15:36:46 +0200 Subject: [PATCH] fix warning uint128.inl "bitwise or" --- .../framework/random/random_iterator/detail/uint128.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corsika/detail/framework/random/random_iterator/detail/uint128.inl b/corsika/detail/framework/random/random_iterator/detail/uint128.inl index 685d641a0..d3ee839f7 100644 --- a/corsika/detail/framework/random/random_iterator/detail/uint128.inl +++ b/corsika/detail/framework/random/random_iterator/detail/uint128.inl @@ -211,11 +211,11 @@ namespace random_iterator { } inline bool uint128_t::operator>=(const uint128_t& rhs) const { - return ((*this > rhs) | (*this == rhs)); + return ((*this > rhs) || (*this == rhs)); } inline bool uint128_t::operator<=(const uint128_t& rhs) const { - return ((*this < rhs) | (*this == rhs)); + return ((*this < rhs) || (*this == rhs)); } inline uint128_t uint128_t::operator+(const uint128_t& rhs) const { -- GitLab