mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:37:48 +02:00
one more shot at these warnings
This commit is contained in:
parent
95a63cf131
commit
d92d2d57a0
2 changed files with 2 additions and 2 deletions
|
@ -1022,7 +1022,7 @@ void ImportHeightfieldTool::apply() {
|
||||||
|
|
||||||
QByteArray color;
|
QByteArray color;
|
||||||
if (buffer->getColor().isEmpty()) {
|
if (buffer->getColor().isEmpty()) {
|
||||||
const char WHITE_VALUE = 0xFF;
|
const unsigned char WHITE_VALUE = 0xFF;
|
||||||
color = QByteArray(height.size() * DataBlock::COLOR_BYTES, WHITE_VALUE);
|
color = QByteArray(height.size() * DataBlock::COLOR_BYTES, WHITE_VALUE);
|
||||||
} else {
|
} else {
|
||||||
color = buffer->getUnextendedColor();
|
color = buffer->getUnextendedColor();
|
||||||
|
|
|
@ -48,7 +48,7 @@ public:
|
||||||
|
|
||||||
_runningSum = 0;
|
_runningSum = 0;
|
||||||
_index = 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)));
|
_scale = 1.0f / ((_randomRows + 1) * (1 << (_randomBits - 1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue