Mercurial > hg > svgui
diff layer/SingleColourLayer.cpp @ 805:1d526ba11a24 warnfix_no_size_t
Remove size_t's and fix warnings in layer/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:18:06 +0100 |
parents | 8b614632568c |
children | a5488775f880 |
line wrap: on
line diff
--- a/layer/SingleColourLayer.cpp Tue Jun 03 11:10:52 2014 +0100 +++ b/layer/SingleColourLayer.cpp Tue Jun 17 15:18:06 2014 +0100 @@ -115,7 +115,7 @@ { if (name == "Colour") { ColourDatabase *db = ColourDatabase::getInstance(); - if (value >= 0 && size_t(value) < db->getColourCount()) { + if (value >= 0 && value < db->getColourCount()) { return db->getColourName(value); } }