Changeset b804d632 in rtems for cpukit/score/macros


Ignore:
Timestamp:
Dec 20, 2001, 5:30:18 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e6dc43d
Parents:
b9f84f1
Message:

2001-12-19 Ralf Corsepius <corsepiu@…>

  • inline/rtems/score/object.inl, macros/rtems/score/object.inl: Add add casts to Objects_Id in _Objects_Build_ids to avoid implicit typecasts from enum to int16 on bit16 targets (here: h8300).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/macros/rtems/score/object.inl

    rb9f84f1 rb804d632  
    2424
    2525#define _Objects_Build_id( _the_class, _node, _index ) \
    26   ( ((_the_class) << OBJECTS_CLASS_START_BIT) | \
    27     ((_node) << OBJECTS_NODE_START_BIT)       | \
    28     ((_index) << OBJECTS_INDEX_START_BIT) )
     26  ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \
     27    (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT)       | \
     28    (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) )
    2929
    3030/*PAGE
Note: See TracChangeset for help on using the changeset viewer.