Commit 1b2cdf3c authored by Davis King's avatar Davis King

Suppress compiler warning

parent ed897428
......@@ -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.");
......
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