Explorar o código

Fixed comparison warning in botnet_comm_processor.cpp

Stefan Schmidt %!s(int64=5) %!d(string=hai) anos
pai
achega
8ebd777723
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code_boost/src/cxx/botnet_comm_processor.cpp

+ 1 - 1
code_boost/src/cxx/botnet_comm_processor.cpp

@@ -26,7 +26,7 @@ botnet_comm_processor::botnet_comm_processor(){
  */
 void botnet_comm_processor::set_messages(const py::list &messages_pyboost){
     messages.clear();
-    for (int i = 0; i < len(messages_pyboost); i++){
+    for (size_t i = 0; i < len(messages_pyboost); i++){
         py::dict msg_pyboost = py::cast<py::dict>(messages_pyboost[i]);
         unsigned int src_id = std::stoi(py::cast<std::string>(msg_pyboost["Src"]));
         unsigned int dst_id = std::stoi(py::cast<std::string>(msg_pyboost["Dst"]));