]> git.sur5r.net Git - freertos/commitdiff
Remove compiler warning in CCS MSP430X port.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 1 Apr 2012 18:24:08 +0000 (18:24 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 1 Apr 2012 18:24:08 +0000 (18:24 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1707 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/CCS4/MSP430X/port.c

index a5d54753e0a9f0c7478dc43269b3573ab933a66a..3caddcc75651ad0ba3fff350686722f01c5a28e2 100644 (file)
@@ -98,7 +98,7 @@ void vPortSetupTimerInterrupt( void );
 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )\r
 {\r
 unsigned short *pusTopOfStack;\r
-unsigned long *pulTopOfStack;\r
+unsigned long *pulTopOfStack, ulTemp;\r
 \r
        /*\r
                Place a few bytes of known values on the bottom of the stack.\r
@@ -117,7 +117,8 @@ unsigned long *pulTopOfStack;
        if( sizeof( pxCode ) == sizeof( unsigned short ) )\r
        {\r
                pusTopOfStack = ( unsigned short * ) pxTopOfStack;\r
-               *pusTopOfStack = ( unsigned short ) pxCode;\r
+               ulTemp = ( unsigned long ) pxCode;\r
+               *pusTopOfStack = ( unsigned short ) ulTemp;\r
        }\r
        else\r
        {\r