#2083 closed defect (fixed)

Wrong return value in _RBTree_Has_only_one_node

Reported by: Andreas Heinig Owned by: Joel Sherrill
Priority: normal Milestone: 4.11
Component: score Version: 4.11
Severity: normal Keywords:
Cc: gedare@… Blocked By:
Blocking:

Description

The function _RBTree_Has_only_one_node shall return a boolean value, but returns NULL. NULL, however, is defined as: (void *)0. Hence it does not match the scalar bool type.

=> Patch attached

Attachments (1)

bool.patch (583 bytes) - added by Andreas Heinig on 12/18/12 at 10:51:44.
Fixed return value

Download all attachments as: .zip

Change History (4)

Changed on 12/18/12 at 10:51:44 by Andreas Heinig

Attachment: bool.patch added

Fixed return value

comment:1 Changed on 12/18/12 at 15:31:46 by Gedare Bloom

Resolution: fixed
Status: newclosed, gedare@rtems.org

comment:2 Changed on 12/18/12 at 15:31:59 by Gedare Bloom

Please close if OK

comment:3 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.