Code

use size_t for comparison with strlen() to be more portable
authorishmal <ishmal@users.sourceforge.net>
Tue, 27 Nov 2007 19:12:45 +0000 (19:12 +0000)
committerishmal <ishmal@users.sourceforge.net>
Tue, 27 Nov 2007 19:12:45 +0000 (19:12 +0000)
src/sp-shape.cpp

index daf85b534deafabf47898d1cd2444bf559c573ae..13500862af08290f43739153bf0c73de490b48ac 100644 (file)
@@ -1121,7 +1121,7 @@ static void sp_shape_snappoints(SPItem const *item, SnapPointsIter p)
     gchar const *nodetypes = item->repr->attribute("sodipodi:nodetypes");    
        int nodetype_index = 0;
        
-       bool nodetypes_out_of_date = strlen(nodetypes) != uint(shape->curve->end);
+       bool nodetypes_out_of_date = strlen(nodetypes) != (size_t)(shape->curve->end);
        // nodetypes might still be empty, e.g. for pure SVG files
        // or it might not have been updated yet