X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Futil.h;h=62f26fdb8eed64cce76f733c8a15fa58ff0b2b51;hb=32b53bb54ee7591fd47dd1ee24e05b73337f40b5;hp=f4b872c791d61a8bf9c282dff55627b02a025d84;hpb=cb67af29e7fb760f2a521bd40ec5a3e0fb01b4d3;p=novacoin.git diff --git a/src/util.h b/src/util.h index f4b872c..62f26fd 100644 --- a/src/util.h +++ b/src/util.h @@ -37,6 +37,7 @@ static const int32_t nOneHour = 60 * 60; static const int32_t nOneDay = 24 * 60 * 60; +static const int64_t nOneWeek = 7 * 24 * 60 * 60; static const int64_t COIN = 1000000; static const int64_t CENT = 10000; @@ -522,7 +523,7 @@ public: T median() const { - int size = vSorted.size(); + size_t size = vSorted.size(); assert(size>0); if(size & 1) // Odd number of elements {