From 7f6afe1f8b46c76368162f05411905630bad03d0 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Mon, 27 May 2019 18:55:27 +0200 Subject: [PATCH] Allow some compiler warnings in favor of passing unit tests ... --- src/tl/unit_tests/tlLongInt.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tl/unit_tests/tlLongInt.cc b/src/tl/unit_tests/tlLongInt.cc index c0b04dd73..241cb9c1c 100644 --- a/src/tl/unit_tests/tlLongInt.cc +++ b/src/tl/unit_tests/tlLongInt.cc @@ -72,7 +72,7 @@ static void run_test_int (tl::TestBase *_this, I1 a, I2 b) EXPECT_EQ (to_i (ae + be), a + b); r = ae; r += be; - EXPECT_EQ (I1 (to_i (r)), a + I1 (b)); + EXPECT_EQ (to_i (r), a + b); EXPECT_EQ (to_i (ae + basic_type (2)), a + basic_type (2)); r = ae; r += basic_type (2); @@ -81,7 +81,7 @@ static void run_test_int (tl::TestBase *_this, I1 a, I2 b) EXPECT_EQ (to_i (ae - be), a - b); r = ae; r -= be; - EXPECT_EQ (I1 (to_i (r)), a - I1 (b)); + EXPECT_EQ (to_i (r), a - b); EXPECT_EQ (to_i (ae - basic_type (2)), a - basic_type (2)); r = ae; r -= basic_type (2); @@ -98,17 +98,17 @@ static void run_test_int (tl::TestBase *_this, I1 a, I2 b) EXPECT_EQ (to_i (ae * be), a * b); r = ae; r *= be; - EXPECT_EQ (I1 (to_i (r)), a * I1 (b)); + EXPECT_EQ (to_i (r), a * b); if (b != 0) { EXPECT_EQ (to_i (ae / be), a / b); r = ae; r /= be; - EXPECT_EQ (I1 (to_i (r)), a / I1 (b)); + EXPECT_EQ (to_i (r), a / b); EXPECT_EQ (to_i (ae % be), a % b); r = ae; r %= be; - EXPECT_EQ (I1 (to_i (r)), a % I1 (b)); + EXPECT_EQ (to_i (r), a % b); } }