# HG changeset patch # User Ricardo M. Correia # Date 1339089075 -7200 # Node ID 692398cb7abef03750b04c354d18ef678a0c132e # Parent 7f3b977e543c524d38bd2e7d4a4f42cd7698ec66 Don't overflow integer on 32-bit machines. This was causing test_bitcoin to abort on a 32-bit system likely due to -ftrapv. diff --git a/src/util.h b/src/util.h --- a/src/util.h +++ b/src/util.h @@ -288,7 +288,7 @@ #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; }