summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/bitfield.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2009-05-08 04:55:53 +0000
committerChris Johns <chrisj@rtems.org>2009-05-08 04:55:53 +0000
commit199ccded5dbc4dabb7e4fd5a2772eed6e571d444 (patch)
tree12c832f55d56161ad0ed3ae4e8fab785596883db /cpukit/score/include/rtems/score/bitfield.h
parent2009-05-07 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-199ccded5dbc4dabb7e4fd5a2772eed6e571d444.tar.bz2
2009-05-08 Chris Johns <chrisj@rtems.org>
* cpukit/libblock/src/bdpart.c, libmisc/shell/main_msdosfmt.c, libmisc/shell/main_rm.c, libnetworking/libc/gethostnamadr.c, score/include/rtems/score/bitfield.h, score/inline/rtems/score/priority.inl: Remove warnings.
Diffstat (limited to 'cpukit/score/include/rtems/score/bitfield.h')
-rw-r--r--cpukit/score/include/rtems/score/bitfield.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/bitfield.h b/cpukit/score/include/rtems/score/bitfield.h
index 04a2a96f4c..0efc574f58 100644
--- a/cpukit/score/include/rtems/score/bitfield.h
+++ b/cpukit/score/include/rtems/score/bitfield.h
@@ -90,9 +90,9 @@ const unsigned char __log2table[256] = {
register const unsigned char *__p = __log2table; \
\
if ( __value < 0x100 ) \
- (_bit_number) = __p[ __value ] + 8; \
+ (_bit_number) = (Priority_Bit_map_control)( __p[ __value ] + 8 ); \
else \
- (_bit_number) = __p[ __value >> 8 ]; \
+ (_bit_number) = (Priority_Bit_map_control)( __p[ __value >> 8 ] ); \
}
#endif