diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2018-10-29 13:45:34 +0000 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2018-10-29 13:45:36 +0000 |
commit | 19483db955cfa570d04d0fdf65bf8fad161ea3e9 (patch) | |
tree | 07989c98ebdca5434d930c58fc209704e2492c71 | |
parent | 067112faac5aeb1d28d698115c4c2d5b051e7df1 (diff) | |
download | armnn-19483db955cfa570d04d0fdf65bf8fad161ea3e9.tar.gz |
Fixed Android32 build error blocking master
* In ImagePreprocessor, typecasted the number of image elements
(unsigned int) to a const_iterator::difference_type (int)
Change-Id: Idb8611185f6471751678a0a77d8225bceb204a34
-rw-r--r-- | tests/ImagePreprocessor.cpp | 2 |
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) |