mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 11:33:44 +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;
|
||||
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();
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue