mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-03 02:34:14 +00:00
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:
parent
10b45b4c2e
commit
43346904e1
@ -288,7 +288,7 @@ inline int64 GetPerformanceCounter()
|
|||||||
#else
|
#else
|
||||||
timeval t;
|
timeval t;
|
||||||
gettimeofday(&t, NULL);
|
gettimeofday(&t, NULL);
|
||||||
nCounter = t.tv_sec * 1000000 + t.tv_usec;
|
nCounter = (int64) t.tv_sec * 1000000 + t.tv_usec;
|
||||||
#endif
|
#endif
|
||||||
return nCounter;
|
return nCounter;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user