Compile with extra warnings turned on. And more makefile/code tidying up.
[novacoin.git] / src / net.h
index 61daf03..9f58d1e 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -266,7 +266,9 @@ public:
         // Make sure not to reuse time indexes to keep things in the same order
         int64 nNow = (GetTime() - 1) * 1000000;
         static int64 nLastTime;
-        nLastTime = nNow = std::max(nNow, ++nLastTime);
+        ++nLastTime;
+        nNow = std::max(nNow, nLastTime);
+        nLastTime = nNow;
 
         // Each retry is 2 minutes after the last
         nRequestTime = std::max(nRequestTime + 2 * 60 * 1000000, nNow);