[Top][All Lists]

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

Re: [Gnash-dev] "unsinged": enumeral type?

From: strk
Subject: Re: [Gnash-dev] "unsinged": enumeral type?
Date: Tue, 31 Oct 2006 10:38:18 +0100

On Tue, Oct 31, 2006 at 10:28:50AM +0100, Udo Giacomozzi wrote:
> This is probably a c++ question and more related to AGG itself, but I
> try to fix those compiler warnings to the AGG renderer.
> At some points I get the warning:
> /home/udo/agg-2.4/include/agg_bezier_arc.h:71: warning: enumeral and
>    non-enumeral type in conditional expression


>             return (m_vertex == 2) ? path_cmd_move_to : m_cmd;

Since m_vertex is unsigned you might try using '2u' as a literal to
force 'unsigned' nature of that number.
Anyway, the 'enumeral' vs. 'non-enumeral' warning seems unrelated to me...
Rather, how is path_cmd_move_to defined ? Is it an enumeral type ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]