A few additional casts to keep the Renesas RX compiler happy.

This commit is contained in:
Richard Barry 2014-05-29 13:39:48 +00:00
parent 74ffdb0b89
commit ef254df85f
3 changed files with 6 additions and 5 deletions

View file

@ -410,7 +410,7 @@ TickType_t xBlockPeriod, xTimerPeriod, xExpectedNumber;
xExpectedNumber = xBlockPeriod / xTimerPeriod;
ucMaxAllowableValue = ( ( unsigned char ) xExpectedNumber ) ;
ucMinAllowableValue = ( ( unsigned char ) xExpectedNumber - ( unsigned char ) 1 );
ucMinAllowableValue = ( unsigned char ) ( ( unsigned char ) xExpectedNumber - ( unsigned char ) 1 ); /* Weird casting to try and please all compilers. */
if( ( ucAutoReloadTimerCounters[ ucTimer ] < ucMinAllowableValue ) ||
( ucAutoReloadTimerCounters[ ucTimer ] > ucMaxAllowableValue )