Fixed warning in visual studio.

This commit is contained in:
Davis King 2017-08-21 19:35:42 -04:00
parent 1db46949ee
commit 05c8391cb2
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ namespace dlib
const matrix_exp<EXP>& item const matrix_exp<EXP>& item
) )
{ {
DLIB_CASSERT(idx < num_samples()); DLIB_CASSERT(idx < (unsigned long)num_samples());
DLIB_CASSERT(item.size() == nr()*nc()*k()); DLIB_CASSERT(item.size() == nr()*nc()*k());
static_assert((is_same_type<float, typename EXP::type>::value == true), static_assert((is_same_type<float, typename EXP::type>::value == true),
"To assign a matrix to a tensor the matrix must contain float values"); "To assign a matrix to a tensor the matrix must contain float values");