From 1b2cdf3c5b071cbc8740f0b1e802524ed5b6f079 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 28 Oct 2017 20:35:59 -0400 Subject: [PATCH] Suppress compiler warning --- dlib/dnn/layers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/dnn/layers.h b/dlib/dnn/layers.h index 888834724..7ad0278c3 100644 --- a/dlib/dnn/layers.h +++ b/dlib/dnn/layers.h @@ -1451,7 +1451,7 @@ namespace dlib void set_num_outputs(long num) { DLIB_CASSERT(num > 0); - if (num != num_outputs) + if (num != (long)num_outputs) { DLIB_CASSERT(get_layer_params().size() == 0, "You can't change the number of filters in fc_ if the parameter tensor has already been allocated.");