little change to delete warning

This commit is contained in:
paradiseo 2009-01-27 16:26:44 +00:00
commit eca555a7a3
2 changed files with 4 additions and 4 deletions

View file

@ -276,7 +276,7 @@ public :
@return Uniformly chosen element from the vector.
*/
template <typename TYPE>
const TYPE& choice(const std::vector<TYPE>& vec)
const TYPE& choice(const std::vector<TYPE>& vec)
{ return vec[random(vec.size())]; }
@ -450,10 +450,10 @@ inline void eoRng::initialize(uint32_t seed)
left = -1;
register uint32_t x = (seed | 1U) & 0xFFFFFFFFU, *s = state;
register int j;
register int j;
for(left=0, *s++=x, j=N; --j;
*s++ = (x*=69069U) & 0xFFFFFFFFU);
*s++ = (x*=69069U) & 0xFFFFFFFFU) ;
}

View file

@ -57,7 +57,7 @@ public:
clock_t tick = clock();
if ( (tick-last_tick) >= seconds * CLOCKS_PER_SEC) {
if ( (unsigned)(tick-last_tick) >= seconds * CLOCKS_PER_SEC) {
monitor = true;
}