Use UINT64_MAX
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Tue, 14 Apr 2015 20:37:01 +0000 (23:37 +0300)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Tue, 14 Apr 2015 20:37:01 +0000 (23:37 +0300)
src/net.cpp

index 90824d0..bcd3164 100644 (file)
@@ -308,7 +308,7 @@ extern int GetExternalIPbySTUN(uint64_t rnd, struct sockaddr_in *mapped, const c
 bool GetMyExternalIP(CNetAddr& ipRet)
 {
     struct sockaddr_in mapped;
-    uint64_t rnd = ULLONG_MAX;
+    uint64_t rnd = UINT64_MAX;
     const char *srv;
     int rc = GetExternalIPbySTUN(rnd, &mapped, &srv);
     if(rc >= 0) {