Changeset b804d632 in rtems for cpukit/score/inline


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/inline/rtems/score/object.inl

    rb9f84f1 rb804d632  
    3333)
    3434{
    35   return (the_class << OBJECTS_CLASS_START_BIT) |
    36          (node << OBJECTS_NODE_START_BIT)       |
    37          (index << OBJECTS_INDEX_START_BIT);
     35  return (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
     36         (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT)       |
     37         (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT);
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.