X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fprotocol.h;h=ece61840d587cb05c9258182cce18c781bb2257f;hb=8accece87de023c512e1cef6f22c519fe5ff47d7;hp=ecc2e08b7f869fc59f9c07503ba7e2e273e02ef7;hpb=8bad3792d398953a742ddba82a86034130c77509;p=novacoin.git diff --git a/src/protocol.h b/src/protocol.h index ecc2e08..ece6184 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -17,9 +17,9 @@ #include "uint256.h" extern bool fTestNet; -static inline unsigned short GetDefaultPort(const bool testnet = fTestNet) +inline unsigned short GetDefaultPort() { - return testnet ? 17777 : 7777; + return static_cast(fTestNet ? 17777 : 7777); }