Don't overflow integer on 32-bit machines.

This was causing test_bitcoin to abort on a 32-bit system likely due to -ftrapv.
This commit is contained in:
Ricardo M. Correia
2012-06-07 19:11:15 +02:00
committed by Luke Dashjr
parent 7ff54e08aa
commit b0d9f41cd2

View File

@@ -396,7 +396,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;
}