Skip to content

Commit

Permalink
abi: std: use bool as odp_bool_t
Browse files Browse the repository at this point in the history
Change ABI type for odp_bool_t from int to bool to comply with the
clarified API documentation. Otherwise for example unsigned values with all
zero lowest 32 bits (e.g. 0x100000000) would get converted to zero. The
change can also reduce memory usage.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
  • Loading branch information
MatiasElo committed Sep 6, 2024
1 parent d49d7bd commit b35d8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/odp/api/abi-default/std_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern "C" {
* @{
*/

typedef int odp_bool_t;
typedef bool odp_bool_t;

/**
* @}
Expand Down

0 comments on commit b35d8ca

Please sign in to comment.