diff --git a/TcpConnectionKiller/TcpConnectionKiller.cpp b/TcpConnectionKiller/TcpConnectionKiller.cpp index e9bfd60..3f17e43 100644 --- a/TcpConnectionKiller/TcpConnectionKiller.cpp +++ b/TcpConnectionKiller/TcpConnectionKiller.cpp @@ -40,7 +40,7 @@ vector GetConnectionsFromProcess(int processIdToKill) { auto tableMemory = vector(1000000); const auto table = reinterpret_cast(&tableMemory[0]); - ULONG size = tableMemory.size(); + ULONG size = static_cast(tableMemory.size()); if (GetTcpTable2(table, &size, TRUE) != 0) { throw exception("Failed to get TCP table");