Void - return mismatch
authorsvost <ya.nowa@yandex.ru>
Sat, 6 Feb 2016 09:57:58 +0000 (12:57 +0300)
committersvost <ya.nowa@yandex.ru>
Sat, 6 Feb 2016 09:57:58 +0000 (12:57 +0300)
src/protocol.h

index ecc2e08..b4ebac6 100644 (file)
@@ -19,7 +19,7 @@
 extern bool fTestNet;
 static inline unsigned short GetDefaultPort(const bool testnet = fTestNet)
 {
-    return testnet ? 17777 : 7777;
+    return static_cast<unsigned short>(testnet ? 17777 : 7777);
 }