diff options
Diffstat (limited to 'cpukit/score/src/objectget.c')
-rw-r--r-- | cpukit/score/src/objectget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/objectget.c b/cpukit/score/src/objectget.c index 01d8683ca7..4c30d2a008 100644 --- a/cpukit/score/src/objectget.c +++ b/cpukit/score/src/objectget.c @@ -54,7 +54,9 @@ Objects_Control *_Objects_Get( unsigned32 index; /* index = _Objects_Get_index( id ); */ - index = (unsigned16) id; + index = id & 0x0000ffff; + /* This should work but doesn't always :( */ + /* index = (unsigned16) id; */ if ( information->maximum >= index ) { _Thread_Disable_dispatch(); |