Merge tag 'v01.01.00.00' into develop
[tidl/tidl-api.git] / examples / segmentation / object_classes.cpp
index d930106f0aec6ddac344f04413a4851060bfb702..35aebf744d338cc841813024d96747355e25d692 100644 (file)
@@ -62,7 +62,7 @@ object_class_table_t* GetObjectClassTable(std::string &config)
 
 object_class_t* GetObjectClass(object_class_table_t *table, int index)
 {
-    if (index < 0 || index >= table->num_classes)  index = table->num_classes;
+    if (index < 0 || (unsigned int)index >= table->num_classes)  index = table->num_classes;
     return & (table->classes[index]);
 }