From 27b7e81d91c545d3a35b0581ec4f9ae2eda90bb7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 21 Dec 2008 21:28:05 +0000 Subject: 2008-12-21 Joel Sherrill * score/inline/rtems/score/object.inl, score/src/objectgetbyindex.c: Fix issues when using 16-bit object Ids. --- cpukit/score/src/objectgetbyindex.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/objectgetbyindex.c') diff --git a/cpukit/score/src/objectgetbyindex.c b/cpukit/score/src/objectgetbyindex.c index 199dcb9b2b..61c74ad75e 100644 --- a/cpukit/score/src/objectgetbyindex.c +++ b/cpukit/score/src/objectgetbyindex.c @@ -50,11 +50,14 @@ Objects_Control *_Objects_Get_by_index( Objects_Information *information, - uint32_t index, + Objects_Id id, Objects_Locations *location ) { Objects_Control *the_object; + uint16_t index; + + index = _Objects_Get_index( id ); if ( information->maximum >= index ) { _Thread_Disable_dispatch(); -- cgit v1.2.3