From 23ea4f1b742ecb794e4ee657bfc1a3db0382bbcd Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 14 Apr 2010 00:40:20 +0000 Subject: add __ICCM16C__ compiler support. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@621 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/thread.c') diff --git a/src/thread.c b/src/thread.c index b8859f9a0c..d7320e3de0 100644 --- a/src/thread.c +++ b/src/thread.c @@ -212,10 +212,10 @@ rt_err_t rt_thread_startup (rt_thread_t thread) /* calculate priority attribute */ #if RT_THREAD_PRIORITY_MAX > 32 thread->number = thread->current_priority >> 3; /* 5bit */ - thread->number_mask = 1 << thread->number; - thread->high_mask = 1 << (thread->current_priority & 0x07); /* 3bit */ + thread->number_mask = 1L << thread->number; + thread->high_mask = 1L << (thread->current_priority & 0x07); /* 3bit */ #else - thread->number_mask = 1 << thread->current_priority; + thread->number_mask = 1L << thread->current_priority; //1L means long int,fixed compile mistake with IAR EW M16C v3.401,fify 20100410 #endif #ifdef THREAD_DEBUG -- cgit v1.3.1