From 4c0b8b96906d3a1a1a1410c1dd9d758b113ab9b3 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 16 Jan 2021 00:41:30 -0500 Subject: [PATCH] Fix compiler warning --- dlib/cuda/cuda_dlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/cuda/cuda_dlib.h b/dlib/cuda/cuda_dlib.h index 4680e796e..b34b2b436 100644 --- a/dlib/cuda/cuda_dlib.h +++ b/dlib/cuda/cuda_dlib.h @@ -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(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());