Fix compiler warning

This commit is contained in:
Davis King 2021-01-16 00:41:30 -05:00
parent 0871081a23
commit 4c0b8b9690
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ namespace dlib
for (long i = 0; i < subnetwork_output.num_samples(); ++i, ++truth)
{
const auto& t = *truth;
DLIB_ASSERT(t.size() == subnetwork_output.k());
DLIB_ASSERT(static_cast<long>(t.size()) == subnetwork_output.k());
for (size_t j = 0; j < t.size(); ++j) {
DLIB_ASSERT(t[j].nr() == subnetwork_output.nr());
DLIB_ASSERT(t[j].nc() == subnetwork_output.nc());