summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-12-29 12:29:03 +0000
committer[email protected] <[email protected]>2012-12-29 12:29:03 +0000
commit975610477e9b168858f90cc399d91eb962072f1d (patch)
treeb4b9dab47aea9f00c3b89291e030567331fee572 /src/thread.c
parent7db8d2939bf9833587fcff84f040a8e4f9410e6f (diff)
Add RT_USING_MEMHEAP_AS_HEAP feature: system can use "heap" memheap as system default memory heap.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2554 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c
index 942136adaf..6a0927eb0b 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -24,6 +24,7 @@
* 2011-09-01 Bernard fixed rt_thread_exit issue when the current
* thread preempted, which reported by Jiaxing Lee.
* 2011-09-08 Bernard fixed the scheduling issue in rt_thread_startup.
+ * 2012-12-29 Bernard fixed compiling warning.
*/
#include <rtthread.h>
@@ -88,7 +89,7 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
/* stack init */
thread->stack_addr = stack_start;
- thread->stack_size = stack_size;
+ thread->stack_size = (rt_uint16_t)stack_size;
/* init thread stack */
rt_memset(thread->stack_addr, '#', thread->stack_size);