#1423 closed defect

inconsitience in _Objects_Initialize_information — at Initial Version

Reported by: Nickolay Semyonov-Kolchin Owned by: Joel Sherrill
Priority: normal Milestone: 4.11
Component: score Version: 4.10
Severity: minor Keywords:
Cc: Blocked By:


Our partners found precision lost in _Objects_Initialize_information function.

It is declared as (objectinitializeinformation.c):

void _Objects_Initialize_information(

Objects_Information *information,
Objects_APIs the_api,
uint32_t the_class,
uint32_t maximum,
uint16_t size,
bool is_string,
uint32_t maximum_name_length


bool supports_global,
Objects_Thread_queue_Extract_callout extract


And later in code:

information->the_class = the_class;

But information->the_class have type uint16_t.

From object.h:

/ This is the class of this object set. */
uint16_t the_class;

Proposed solution: the_class should have same type everywhere.

Change History (0)

Note: See TracTickets for help on using tickets.