Fix a couple of casting warnings.
parent
2963094267
commit
25ddbb963b
|
@ -280,7 +280,7 @@ public:
|
||||||
Vector2i(m_blockSize, m_blockSize));
|
Vector2i(m_blockSize, m_blockSize));
|
||||||
} else {
|
} else {
|
||||||
m_tile = new Bitmap(Bitmap::EMultiChannel, m_componentFormat,
|
m_tile = new Bitmap(Bitmap::EMultiChannel, m_componentFormat,
|
||||||
Vector2i(m_blockSize, m_blockSize), m_channelNames.size());
|
Vector2i(m_blockSize, m_blockSize), (uint8_t) m_channelNames.size());
|
||||||
m_tile->setChannelNames(m_channelNames);
|
m_tile->setChannelNames(m_channelNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ public:
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EPrimIndex:
|
case EPrimIndex:
|
||||||
result = Spectrum((int) its.primIndex);
|
result = Spectrum((Float) its.primIndex);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Log(EError, "Internal error!");
|
Log(EError, "Internal error!");
|
||||||
|
|
Loading…
Reference in New Issue