Skip to content

Commit

Permalink
🚨 fix sign conversion gcc warnings
Browse files Browse the repository at this point in the history
Signed-off-by: burgholzer <burgholzer@me.com>
  • Loading branch information
burgholzer committed Jan 21, 2025
1 parent ba3aa86 commit 31b3d64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/ir/test_qfr_functionality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,10 @@ TEST_F(QFRFunctionality, addControlStandardOperation) {
op.addControl(1);
op.addControl(2);
ASSERT_EQ(op.getNcontrols(), 2);
const auto expectedControls = Controls{1, 2};
const auto expectedControls = Controls{1U, 2U};
EXPECT_EQ(op.getControls(), expectedControls);
op.removeControl(1);
const auto expectedControlsAfterRemove = Controls{2};
const auto expectedControlsAfterRemove = Controls{2U};
EXPECT_EQ(op.getControls(), expectedControlsAfterRemove);
op.clearControls();
EXPECT_EQ(op.getNcontrols(), 0);
Expand All @@ -735,10 +735,10 @@ TEST_F(QFRFunctionality, addControlSymbolicOperation) {
op.addControl(2);

ASSERT_EQ(op.getNcontrols(), 2);
auto expectedControls = Controls{1, 2};
auto expectedControls = Controls{1U, 2U};
EXPECT_EQ(op.getControls(), expectedControls);
op.removeControl(1);
auto expectedControlsAfterRemove = Controls{2};
auto expectedControlsAfterRemove = Controls{2U};
EXPECT_EQ(op.getControls(), expectedControlsAfterRemove);
op.clearControls();
EXPECT_EQ(op.getNcontrols(), 0);
Expand All @@ -757,10 +757,10 @@ TEST_F(QFRFunctionality, addControlClassicControlledOperation) {
op.addControl(2);

ASSERT_EQ(op.getNcontrols(), 2);
auto expectedControls = Controls{1, 2};
auto expectedControls = Controls{1U, 2U};
EXPECT_EQ(op.getControls(), expectedControls);
op.removeControl(1);
auto expectedControlsAfterRemove = Controls{2};
auto expectedControlsAfterRemove = Controls{2U};
EXPECT_EQ(op.getControls(), expectedControlsAfterRemove);
op.clearControls();
EXPECT_EQ(op.getNcontrols(), 0);
Expand Down

0 comments on commit 31b3d64

Please sign in to comment.