Browse Source

Don't overflow integer on 32-bit machines.

This was causing test_bitcoin to abort on a 32-bit system likely due to -ftrapv.
0.8
Ricardo M. Correia 13 years ago
parent
commit
43346904e1
  1. 2
      src/util.h

2
src/util.h

@ -288,7 +288,7 @@ inline int64 GetPerformanceCounter() @@ -288,7 +288,7 @@ inline int64 GetPerformanceCounter()
#else
timeval t;
gettimeofday(&t, NULL);
nCounter = t.tv_sec * 1000000 + t.tv_usec;
nCounter = (int64) t.tv_sec * 1000000 + t.tv_usec;
#endif
return nCounter;
}

Loading…
Cancel
Save