From 15f4081cdf1a2dd02e575f4f4918cbe921c47675 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 25 Jun 2016 13:03:12 -0400 Subject: [PATCH] fixed compiler warning --- examples/dnn_imagenet_train_ex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dnn_imagenet_train_ex.cpp b/examples/dnn_imagenet_train_ex.cpp index fe2765524..5cd428b29 100644 --- a/examples/dnn_imagenet_train_ex.cpp +++ b/examples/dnn_imagenet_train_ex.cpp @@ -331,7 +331,7 @@ int main(int argc, char** argv) try bool found_match = false; for (int k = 0; k < 5; ++k) { - unsigned long predicted_label = index_of_max(p); + long predicted_label = index_of_max(p); p(predicted_label) = 0; if (predicted_label == l.numeric_label) {