1
0
python3-espressomd/fix-integral-size-32bit.patch

27 lines
1.1 KiB
Diff

From 8182bb208e31cf9244dd3e6f567d3e27a33c973e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= <jgrad@icp.uni-stuttgart.de>
Date: Wed, 20 Jul 2022 21:25:34 +0200
Subject: [PATCH] tests: Fix integral size on 32bit archs
---
src/utils/tests/integral_parameter_test.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/src/utils/tests/integral_parameter_test.cpp
+++ b/src/utils/tests/integral_parameter_test.cpp
@@ -38,11 +38,11 @@ BOOST_AUTO_TEST_CASE(integral_parameter_
std::pair<std::size_t, int>>::value,
"");
- BOOST_CHECK(std::make_pair(1ul, 13) ==
+ BOOST_CHECK(std::make_pair(std::size_t{1u}, 13) ==
(Utils::integral_parameter<F, 1, 5>(1, 13)));
- BOOST_CHECK(std::make_pair(3ul, 13) ==
+ BOOST_CHECK(std::make_pair(std::size_t{3u}, 13) ==
(Utils::integral_parameter<F, 1, 5>(3, 13)));
- BOOST_CHECK(std::make_pair(5ul, 13) ==
+ BOOST_CHECK(std::make_pair(std::size_t{5u}, 13) ==
(Utils::integral_parameter<F, 1, 5>(5, 13)));
BOOST_CHECK_THROW((Utils::integral_parameter<F, 1, 5>(6, 13)),
std::exception);