]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/utils.cpp
Check that IP is not in use before changing.
[stg.git] / projects / stargazer / plugins / other / smux / utils.cpp
index 18e2bf3157fec9168c7fd92d9d114f7a6eb1d265..3160bc5fcf6c33b5bc1d6729c80fb74e2a8f3f21 100644 (file)
@@ -44,7 +44,7 @@ if (left < str.length())
         }
     arcs[arcPos++] = arc;
     }
-OBJECT_IDENTIFIER_set_arcs(oi, arcs, sizeof(arcs[0]), arcPos);
+OBJECT_IDENTIFIER_set_arcs(oi, arcs, sizeof(arcs[0]), static_cast<unsigned int>(arcPos));
 return true;
 }