Permalink
Browse files

Fix capability_index_list(), used e.g. in /stats ? capability output.

  • Loading branch information...
1 parent 89fd463 commit 33b214fa42dd768b4b5aff881cdc538071a208ce @jillest jillest committed Jul 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/capability.c
View
@@ -159,7 +159,7 @@ capability_index_list(struct CapabilityIndex *idx, unsigned int cap_mask)
DICTIONARY_FOREACH(entry, &iter, idx->cap_dict)
{
- if (entry->value & cap_mask)
+ if ((1 << entry->value) & cap_mask)
{
tl = rb_sprintf(t, "%s ", entry->cap);
t += tl;

0 comments on commit 33b214f

Please sign in to comment.