aboutsummaryrefslogtreecommitdiff
path: root/tests/ImagePreprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ImagePreprocessor.cpp')
-rw-r--r--tests/ImagePreprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ImagePreprocessor.cpp b/tests/ImagePreprocessor.cpp
index 8ceedd2d04..dfa400bb34 100644
--- a/tests/ImagePreprocessor.cpp
+++ b/tests/ImagePreprocessor.cpp
@@ -36,7 +36,7 @@ unsigned int ImagePreprocessor<TDataType>::GetLabelAndResizedImageAsFloat(unsign
// duplicate data across the batch
for (unsigned int i = 1; i < m_BatchSize; i++)
{
- result.insert( result.end(), result.begin(), result.begin() + GetNumImageElements() );
+ result.insert(result.end(), result.begin(), result.begin() + boost::numeric_cast<int>(GetNumImageElements()));
}
if (m_DataFormat == DataFormat::NCHW)