Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

as_flags_value is broken #64

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -2426,7 +2426,7 @@ as_component_set_token_cache_valid (AsComponent *cpt, gboolean valid)
/**
* as_component_set_value_flags
* @cpt: a #AsComponent instance.
* @flag: #AsValueFlags to set on @cpt.
* @flags: #AsValueFlags to set on @cpt.
*
*/
void
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
#define as_flags_remove(bitfield,enum) do { ((bitfield) &= ~(as_flags_value(enum))); } while (0)
#define as_flags_invert(bitfield,enum) do { ((bitfield) ^= (as_flags_value(enum))); } while (0)
#define as_flags_contains(bitfield,enum) (((bitfield) & (as_flags_value(enum))) > 0)
#define as_flags_value(enum) ((guint64) 1 << (enum))
#define as_flags_value(enum) ((guint64) (enum))

/**
* AsUrlKind: