diff --git a/PVRTCEncoder/src/Compressor.cpp b/PVRTCEncoder/src/Compressor.cpp index 8fea0ed..e67c4e8 100644 --- a/PVRTCEncoder/src/Compressor.cpp +++ b/PVRTCEncoder/src/Compressor.cpp @@ -486,11 +486,11 @@ namespace PVRTCC { minHighDist = ::std::min(minHighDist, labels[cidx].highLabel.distance); } - if(minLowDist != labels[idx].lowLabel.distance - 1) { + if(static_cast(minLowDist) != labels[idx].lowLabel.distance - 1) { labels[idx].lowLabel.nLabels = 0; } - if(minHighDist != labels[idx].highLabel.distance - 1) { + if(static_cast(minHighDist) != labels[idx].highLabel.distance - 1) { labels[idx].highLabel.nLabels = 0; }