aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/peer.cpp b/peer.cpp
index 3f97b69d..6dfe363f 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -38,11 +38,11 @@ int peerTest(int argc, char** argv)
{
string arg = argv[i];
if (arg == "-l" && i + 1 < argc)
- listenPort = atoi(argv[++i]);
+ listenPort = (short)atoi(argv[++i]);
else if (arg == "-r" && i + 1 < argc)
remoteHost = argv[++i];
else if (arg == "-p" && i + 1 < argc)
- remotePort = atoi(argv[++i]);
+ remotePort = (short)atoi(argv[++i]);
else
remoteHost = argv[i];
}