Commit 05c8391c authored by Davis King's avatar Davis King

Fixed warning in visual studio.

parent 1db46949
...@@ -168,7 +168,7 @@ namespace dlib ...@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment