]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/region.cpp
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / src / gtk / region.cpp
index 33ee658dbdb4aee5b07aa4500538265f87dd49b6..964ae16316061c75ddcd15dfedc6c28218a8f810 100644 (file)
@@ -465,7 +465,7 @@ wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
     if ( m_numRects )
     {
         m_rects = new wxRect[m_numRects];
     if ( m_numRects )
     {
         m_rects = new wxRect[m_numRects];
-        for ( long n = 0; n < m_numRects; n++ )
+        for ( unsigned int n = 0; n < m_numRects; n++ )
             m_rects[n] = ri.m_rects[n];
     }
     else
             m_rects[n] = ri.m_rects[n];
     }
     else