Re: [gtk-osx-users] gtk-osx question

On Tue, Apr 1, 2014 at 4:57 AM, Richard Procter
<richard n procter gmail com> wrote:
I suspect that for the |=, C++, but not C, implicitly converts the GdkModifierType operands to int but
then refuses to implicitly convert back to GdkModifier type when it comes to the assignment (as blindly 
an invalid value would break the type).

That sounds like flawed design. The GdkModifier enumerated values are
documented as bit flags [1], so the type for a collection of them
should surely be a straight integer (probably 'int' or 'unsigned').
But most likely an explicit cast will fix the problem.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]