X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ee3c06421446908fabe9de45b8e0c7519c28c24..1dde66dda68a3d712d2f4de0388c4bb3a3375b36:/contrib/src/ogl/basic2.cpp diff --git a/contrib/src/ogl/basic2.cpp b/contrib/src/ogl/basic2.cpp index bf4eb57ca4..21aba04dad 100644 --- a/contrib/src/ogl/basic2.cpp +++ b/contrib/src/ogl/basic2.cpp @@ -396,7 +396,7 @@ void wxPolygonShape::AddPolygonPoint(int pos) double y = (double)((secondPoint->y - firstPoint->y)/2.0 + firstPoint->y); wxRealPoint *point = new wxRealPoint(x, y); - if (pos >= (m_points->GetCount() - 1)) + if (pos >= (int) (m_points->GetCount() - 1)) m_points->Append((wxObject*) point); else m_points->Insert(node2, (wxObject*) point); @@ -784,7 +784,7 @@ int wxPolygonShape::GetNumberOfAttachments() const bool wxPolygonShape::GetAttachmentPosition(int attachment, double *x, double *y, int nth, int no_arcs, wxLineShape *line) { - if ((m_attachmentMode == ATTACHMENT_MODE_EDGE) && m_points && attachment < m_points->GetCount()) + if ((m_attachmentMode == ATTACHMENT_MODE_EDGE) && m_points && attachment < (int) m_points->GetCount()) { wxRealPoint *point = (wxRealPoint *)m_points->Item(attachment)->GetData(); *x = point->x + m_xpos; @@ -800,7 +800,7 @@ bool wxPolygonShape::AttachmentIsValid(int attachment) const if (!m_points) return FALSE; - if ((attachment >= 0) && (attachment < m_points->GetCount())) + if ((attachment >= 0) && (attachment < (int) m_points->GetCount())) return TRUE; wxNode *node = m_attachmentPoints.GetFirst();