Fix a couple of casting warnings.

metadata
Edgar Velazquez-Armendariz 2014-04-02 16:17:10 -04:00
parent 2963094267
commit 25ddbb963b
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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!");