one more shot at these warnings

This commit is contained in:
ZappoMan 2014-09-13 09:28:28 -07:00
parent 95a63cf131
commit d92d2d57a0
2 changed files with 2 additions and 2 deletions

View file

@ -1022,7 +1022,7 @@ void ImportHeightfieldTool::apply() {
QByteArray color;
if (buffer->getColor().isEmpty()) {
const char WHITE_VALUE = 0xFF;
const unsigned char WHITE_VALUE = 0xFF;
color = QByteArray(height.size() * DataBlock::COLOR_BYTES, WHITE_VALUE);
} else {
color = buffer->getUnextendedColor();

View file

@ -48,7 +48,7 @@ public:
_runningSum = 0;
_index = 0;
_indexMask = ((uint16_t)1 << _randomRows) - 1;
_indexMask = ((uint16_t)1 << _randomRows) - (uint16_t)1;
_scale = 1.0f / ((_randomRows + 1) * (1 << (_randomBits - 1)));
}