From: richardbarry Date: Sat, 12 Apr 2008 23:26:44 +0000 (+0000) Subject: Casting only. X-Git-Tag: V5.0.0~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1a938e67aa87d988f3a9ea8d22d8b0addb28ec7;p=freertos Casting only. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@306 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/queue.c b/Source/queue.c index 28961d2dd..ab18345cb 100644 --- a/Source/queue.c +++ b/Source/queue.c @@ -978,7 +978,7 @@ signed portCHAR *pcOriginalReadPosition; if( xReturn == errQUEUE_EMPTY ) { - if( xTicksToWait > 0 ) + if( xTicksToWait > ( portTickType ) 0 ) { if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) { @@ -1079,7 +1079,7 @@ void vQueueDelete( xQueueHandle pxQueue ) static void prvCopyDataToQueue( xQUEUE *pxQueue, const void *pvItemToQueue, portBASE_TYPE xPosition ) { - if( pxQueue->uxItemSize == 0 ) + if( pxQueue->uxItemSize == ( unsigned portBASE_TYPE ) 0 ) { #if ( configUSE_MUTEXES == 1 ) {