libsysprof: fix category inheritance

Move the bit lower so we can use bitfields properly, and add an unmask
helper to avoid all the 0xFF crap.
This commit is contained in:
Christian Hergert
2023-07-21 10:51:41 -07:00
parent ff5c0e4927
commit a99a89782a
4 changed files with 16 additions and 15 deletions

View File

@ -29,7 +29,8 @@
G_BEGIN_DECLS
#define SYSPROF_CALLGRAPH_CATEGORY_INHERIT (1<<30)
#define SYSPROF_CALLGRAPH_CATEGORY_INHERIT (1 << 6)
#define SYSPROF_CALLGRAPH_CATEGORY_UNMASK(c) (c & ~(SYSPROF_CALLGRAPH_CATEGORY_INHERIT))
typedef struct _SysprofCallgraphSummary
{