fixed min type mismatch for 68k

This commit is contained in:
Jeff Hill
2001-03-08 21:52:31 +00:00
parent cbabe522e1
commit 6fccebc954

View File

@@ -86,11 +86,11 @@ void searchTimer::setRetryInterval (unsigned retryNo)
*/
this->retry = tsMin ( retryNo, MAXCONNTRIES + 1u );
/*
* set the retry interval
*/
idelay = 1u << tsMin (this->retry, CHAR_BIT*sizeof(idelay)-1u);
idelay = 1u << tsMin ( static_cast < size_t > ( this->retry ),
CHAR_BIT * sizeof ( idelay ) - 1u );
delay = idelay * CA_RECAST_DELAY; /* sec */
/*
* place upper limit on the retry delay