From 686ee801dd298f642efb27a8c65a4a97cce79221 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 5 May 2012 23:35:44 -0400 Subject: [PATCH] Just added some casts to avoid compiler warnings. --- dlib/svm/graph_labeler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/svm/graph_labeler.h b/dlib/svm/graph_labeler.h index 24b306a92..5468d1a89 100644 --- a/dlib/svm/graph_labeler.h +++ b/dlib/svm/graph_labeler.h @@ -75,7 +75,7 @@ namespace dlib is_matrix::value) { // check that dot() is legal. - DLIB_ASSERT(get_node_weights().size() == sample.node(i).data.size(), + DLIB_ASSERT((unsigned long)get_node_weights().size() == (unsigned long)sample.node(i).data.size(), "\t void graph_labeler::operator()" << "\n\t The size of the node weight vector must match the one in the node." << "\n\t get_node_weights().size(): " << get_node_weights().size() @@ -91,7 +91,7 @@ namespace dlib is_matrix::value) { // check that dot() is legal. - DLIB_ASSERT(get_edge_weights().size() == sample.node(i).edge(n).size(), + DLIB_ASSERT((unsigned long)get_edge_weights().size() == (unsigned long)sample.node(i).edge(n).size(), "\t void graph_labeler::operator()" << "\n\t The size of the edge weight vector must match the one in graph's edge." << "\n\t get_edge_weights().size(): " << get_edge_weights().size()