GeisSubscriptionFlags declared as enum when it is really a bitmask
Bug #813819 reported by
Chase Douglas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Geis |
Fix Released
|
Low
|
Chase Douglas | ||
utouch-geis (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Precise |
Fix Released
|
Low
|
Unassigned |
Bug Description
The current definition of GeisSubscriptio
typedef enum GeisSubscriptio
{
GEIS_
GEIS_
GEIS_
} GeisSubscriptio
This prevents the following code from compiling under g++:
GeisSubscriptio
This is because the value of the result does not match any in the enum. Geis should use an anonymous enum for the flags definition, but a typedef of an int for GeisSubscriptio
A workaround is to define the flags variable as an int.
Related branches
lp://qastaging/~chasedouglas/geis/subscription-flags
- Stephen M. Webb (community): Approve
- Daniel d'Andrada (community): Approve
-
Diff: 19 lines (+3/-2)1 file modifiedinclude/geis/geis.h (+3/-2)
Changed in utouch-geis: | |
status: | New → Triaged |
importance: | Undecided → Medium |
importance: | Medium → Low |
assignee: | nobody → Stephen M. Webb (bregma) |
description: | updated |
Changed in utouch-geis: | |
assignee: | Stephen M. Webb (bregma) → Chase Douglas (chasedouglas) |
Changed in utouch-geis: | |
milestone: | none → utouch-geis-2.2.10 |
Changed in utouch-geis (Ubuntu): | |
importance: | Undecided → Low |
Changed in utouch-geis: | |
status: | Triaged → Fix Committed |
Changed in utouch-geis (Ubuntu Precise): | |
importance: | Undecided → Low |
Changed in utouch-geis (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in utouch-geis: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Can you please upload the fixes to quantal?