diff options
Diffstat (limited to 'cpukit/score/include/rtems/score/bitfield.h')
-rw-r--r-- | cpukit/score/include/rtems/score/bitfield.h | 4 |
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 |