diff --git a/src/films/tiledhdrfilm.cpp b/src/films/tiledhdrfilm.cpp index 186516f4..3efe8512 100644 --- a/src/films/tiledhdrfilm.cpp +++ b/src/films/tiledhdrfilm.cpp @@ -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); } diff --git a/src/integrators/misc/field.cpp b/src/integrators/misc/field.cpp index efc8129e..4a5b7b86 100644 --- a/src/integrators/misc/field.cpp +++ b/src/integrators/misc/field.cpp @@ -165,7 +165,7 @@ public: } break; case EPrimIndex: - result = Spectrum((int) its.primIndex); + result = Spectrum((Float) its.primIndex); break; default: Log(EError, "Internal error!");