From e553e1b21e60e83c614293de5d95cdc4fc94a3bc Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Mon, 6 Sep 2004 13:39:59 +0000 Subject: [PATCH] Added a cast for HP's compiler --- src/ca/searchTimer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ca/searchTimer.cpp b/src/ca/searchTimer.cpp index f22066652..db280f6e7 100644 --- a/src/ca/searchTimer.cpp +++ b/src/ca/searchTimer.cpp @@ -149,7 +149,8 @@ void searchTimer::recomputeTimerPeriod ( epicsGuard < udpMutex > & guard, const unsigned retryNew ) // X aCC 431 { this->retry = retryNew; - unsigned idelay = 1u << tsMin ( this->retry, CHAR_BIT * sizeof ( idelay ) - 1u ); + unsigned idelay = 1u << tsMin ( this->retry, + (unsigned int) ( CHAR_BIT * sizeof ( idelay ) - 1u ) ); double delayFactor = tsMax ( this->iiu.roundTripDelayEstimate ( guard ) * 2.0, minSearchPeriod ); this->period = idelay * delayFactor; /* sec */