Skip to content

Commit

Permalink
Handle even more clang-tidy messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Feb 5, 2024
1 parent e8ff445 commit 96743ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion math/softfloat/soft_double.h
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* x2 + UINT32_C(34459425))
* x2 + UINT32_C(14549535));

return ((x * 11) * top) / bot;
return ((x * static_cast<int>(INT8_C(11))) * top) / bot;
}

} // namespace detail
Expand Down
8 changes: 4 additions & 4 deletions math/softfloat/soft_double_examples.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
///////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2020 - 2022. //
// Copyright Christopher Kormanyos 2020 - 2024. //
// Distributed under the Boost Software License, //
// Version 1.0. (See accompanying file LICENSE_1_0.txt //
// or copy at http://www.boost.org/LICENSE_1_0.txt) //
///////////////////////////////////////////////////////////////////

#ifndef SOFT_DOUBLE_EXAMPLES_2021_04_17_H_
#define SOFT_DOUBLE_EXAMPLES_2021_04_17_H_
#ifndef SOFT_DOUBLE_EXAMPLES_2021_04_17_H // NOLINT(llvm-header-guard)
#define SOFT_DOUBLE_EXAMPLES_2021_04_17_H

#if(__cplusplus >= 201703L)
namespace math::softfloat {
Expand All @@ -29,4 +29,4 @@
} // namespace math
#endif

#endif // SOFT_DOUBLE_EXAMPLES_2021_04_17_H_
#endif // SOFT_DOUBLE_EXAMPLES_2021_04_17_H

0 comments on commit 96743ad

Please sign in to comment.