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