Skip to content

Commit fa980d5

Browse files
committed
Fix integer type mismatch
1 parent bd96414 commit fa980d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/architecture/pNetwork.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ std::shared_ptr<Channel> Network::addChannel(int nodeIdA, int nodeIdB, double wi
4343

4444
std::shared_ptr<Channel> Network::addChannel(int channelId, int nodeIdA, int nodeIdB, double width, double height)
4545
{
46-
if (nodeIdA >= nodes.size() || nodeIdB >= nodes.size())
46+
if (nodeIdA >= int(nodes.size()) || nodeIdB >= int(nodes.size()))
4747
{
4848
throw std::invalid_argument("Tried to create channel to undefined node.");
4949
}

0 commit comments

Comments
 (0)