Skip to content
Snippets Groups Projects
Commit 0749d663 authored by Tobias Hunger's avatar Tobias Hunger Committed by Christian Stenger
Browse files

Fix warning about comparing an enum to an integer


Change-Id: I2a35fa58c5e68d3bd2bb38599ddcf7c4e8e0deb2
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 1daf85a7
No related branches found
Tags at-v3.6.0-beta1
No related merge requests found
......@@ -73,7 +73,7 @@ static QIcon testTreeIcon(TestTreeItem::Type type)
QIcon(QLatin1String(":/images/func.png")),
QIcon(QLatin1String(":/images/data.png"))
};
if (type >= sizeof(icons))
if (static_cast<unsigned long>(type) >= sizeof(icons))
return icons[2];
return icons[type];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment