]> git.sur5r.net Git - freertos/commitdiff
Added yet another type cast to the else if clause in xTaskCheckForTimeOut. This...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 23 Nov 2009 11:18:07 +0000 (11:18 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 23 Nov 2009 11:18:07 +0000 (11:18 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@941 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/tasks.c

index 3cd2e9c02297e46896292abf69e4b8d9b213d1be..6a78a5c0e2abcf4101796897729999e499e36210 100644 (file)
@@ -1744,7 +1744,7 @@ portBASE_TYPE xReturn;
                        passed since vTaskSetTimeout() was called. */\r
                        xReturn = pdTRUE;\r
                }\r
-               else if( ( ( portTickType ) xTickCount - ( portTickType ) pxTimeOut->xTimeOnEntering ) < ( portTickType ) *pxTicksToWait )\r
+               else if( ( ( portTickType ) ( ( portTickType ) xTickCount - ( portTickType ) pxTimeOut->xTimeOnEntering ) ) < ( portTickType ) *pxTicksToWait )\r
                {\r
                        /* Not a genuine timeout. Adjust parameters for time remaining. */\r
                        *pxTicksToWait -= ( ( portTickType ) xTickCount - ( portTickType ) pxTimeOut->xTimeOnEntering );\r