Just added some casts to avoid compiler warnings.

This commit is contained in:
Davis King 2012-05-05 23:35:44 -04:00
parent b355951dab
commit 686ee801dd
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ namespace dlib
is_matrix<typename graph_type::type>::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<typename graph_type::edge_type>::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()