gnash-dev
[Top][All Lists]
Advanced

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

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


From: Udo Giacomozzi
Subject: [Gnash-dev] "unsinged": enumeral type?
Date: Tue, 31 Oct 2006 10:28:50 +0100

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

The relevant code for this:


    class bezier_arc
    {
    public:

        //--------------------------------------------------------------------
        unsigned vertex(double* x, double* y)
        {
            if(m_vertex >= m_num_vertices) return path_cmd_stop;
            *x = m_vertices[m_vertex];
            *y = m_vertices[m_vertex + 1];
            m_vertex += 2;

            // WARNING GENERATED BELOW:
            return (m_vertex == 2) ? path_cmd_move_to : m_cmd;
        }

    private:
        unsigned m_vertex;    // <---
        unsigned m_num_vertices;
        double   m_vertices[26];
        unsigned m_cmd;
    };


Could this be because m_vertex is just defined as "unsiged"?

Sorry if this is a too easy question,.

Udo





reply via email to

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