From b028e725e35629e0405d237942e97a73843ae35b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 5 Jan 2009 20:09:02 +0000 Subject: 2009-01-05 Joel Sherrill * score/include/rtems/score/object.h, score/src/objectallocatebyindex.c: Object index should be int. Fix bug when index is negative. * score/src/objectextendinformation.c: Do not allow maximum number of allocated objects to exceed maximum representable in index field of Object Id. * score/src/objectgetisr.c: Use same code that is in _Objects_Get to extract index field of Object Id. --- cpukit/score/include/rtems/score/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/include/rtems/score/object.h') diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h index af46659069..6bd5358869 100644 --- a/cpukit/score/include/rtems/score/object.h +++ b/cpukit/score/include/rtems/score/object.h @@ -519,7 +519,7 @@ Objects_Control *_Objects_Allocate( */ Objects_Control *_Objects_Allocate_by_index( Objects_Information *information, - uint16_t the_index, + int the_index, uint16_t sizeof_control ); -- cgit v1.2.3