summaryrefslogtreecommitdiffstats
path: root/cpukit/score/macros/rtems/score/object.inl
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-12-20 17:30:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-12-20 17:30:18 +0000
commitb804d632c02ceb4414411f1ca5ab909c6d2ea91c (patch)
tree930a65aae2749961b040117b2c320373b784be8e /cpukit/score/macros/rtems/score/object.inl
parentb9f84f1f06c3cc29b00557f66a152f68d04028fe (diff)
downloadrtems-b804d632c02ceb4414411f1ca5ab909c6d2ea91c.tar.bz2
2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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).
Diffstat (limited to '')
-rw-r--r--cpukit/score/macros/rtems/score/object.inl6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/macros/rtems/score/object.inl b/cpukit/score/macros/rtems/score/object.inl
index bb0070f269..f806cadafc 100644
--- a/cpukit/score/macros/rtems/score/object.inl
+++ b/cpukit/score/macros/rtems/score/object.inl
@@ -23,9 +23,9 @@
*/
#define _Objects_Build_id( _the_class, _node, _index ) \
- ( ((_the_class) << OBJECTS_CLASS_START_BIT) | \
- ((_node) << OBJECTS_NODE_START_BIT) | \
- ((_index) << OBJECTS_INDEX_START_BIT) )
+ ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \
+ (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | \
+ (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) )
/*PAGE
*