From 7f8bc8c6d6f2c814f1f6d88356a2641ab069fe57 Mon Sep 17 00:00:00 2001 From: Edgar Velazquez-Armendariz Date: Sun, 16 Feb 2014 01:09:08 -0500 Subject: [PATCH] Fix minor downcasting warnings. --- src/films/hdrfilm.cpp | 2 +- src/integrators/misc/multichannel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/films/hdrfilm.cpp b/src/films/hdrfilm.cpp index 2774b379..05d75e2f 100644 --- a/src/films/hdrfilm.cpp +++ b/src/films/hdrfilm.cpp @@ -345,7 +345,7 @@ public: m_storage = new ImageBlock(Bitmap::ESpectrumAlphaWeight, m_cropSize); } else { m_storage = new ImageBlock(Bitmap::EMultiSpectrumAlphaWeight, m_cropSize, - NULL, SPECTRUM_SAMPLES * m_pixelFormats.size() + 2); + NULL, (int) (SPECTRUM_SAMPLES * m_pixelFormats.size() + 2)); } } diff --git a/src/integrators/misc/multichannel.cpp b/src/integrators/misc/multichannel.cpp index 9e45a125..b7d295fc 100644 --- a/src/integrators/misc/multichannel.cpp +++ b/src/integrators/misc/multichannel.cpp @@ -82,7 +82,7 @@ public: ref proc = new BlockedRenderProcess(job, queue, scene->getBlockSize()); - proc->setPixelFormat(Bitmap::EMultiSpectrumAlphaWeight, m_integrators.size() * SPECTRUM_SAMPLES + 2, false); + proc->setPixelFormat(Bitmap::EMultiSpectrumAlphaWeight, (int) (m_integrators.size() * SPECTRUM_SAMPLES + 2), false); int integratorResID = sched->registerResource(this); proc->bindResource("integrator", integratorResID);