]> git.sur5r.net Git - freertos/commitdiff
Casting only.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 12 Apr 2008 23:26:44 +0000 (23:26 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 12 Apr 2008 23:26:44 +0000 (23:26 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@306 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/queue.c

index 28961d2dd1dfffd0e4c85e993c8b08be8d728f1d..ab18345cbd3990d36708b99e9cd7333a3e99fd41 100644 (file)
@@ -978,7 +978,7 @@ signed portCHAR *pcOriginalReadPosition;
 \r
                if( xReturn == errQUEUE_EMPTY )\r
                {\r
-                       if( xTicksToWait > 0 )\r
+                       if( xTicksToWait > ( portTickType ) 0 )\r
                        {\r
                                if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )\r
                                {\r
@@ -1079,7 +1079,7 @@ void vQueueDelete( xQueueHandle pxQueue )
 \r
 static void prvCopyDataToQueue( xQUEUE *pxQueue, const void *pvItemToQueue, portBASE_TYPE xPosition )\r
 {\r
-       if( pxQueue->uxItemSize == 0 )\r
+       if( pxQueue->uxItemSize == ( unsigned portBASE_TYPE ) 0 )\r
        {\r
                #if ( configUSE_MUTEXES == 1 )\r
                {\r