X-Git-Url: https://git.pterodactylus.net/?p=synfig.git;a=blobdiff_plain;f=ETL%2Ftrunk%2Ftest%2Fpen.cpp;h=ef6eaeedf952fc4e702ec4ffe01ac6dd21e6a70d;hp=f29319f94554ace17716e71b315e6652bc296f44;hb=6d603393d410ef8f75165a435f4d638c7a66681e;hpb=c9ce08f312b9ea653001807d914d358ec0e002b9 diff --git a/ETL/trunk/test/pen.cpp b/ETL/trunk/test/pen.cpp index f29319f..ef6eaee 100644 --- a/ETL/trunk/test/pen.cpp +++ b/ETL/trunk/test/pen.cpp @@ -92,7 +92,7 @@ int generic_pen_test(int w, int h) if(pen.end_x()-pen.x()!=w-1) { - printf("FAILURE! "__FILE__"@%d: iterator_x inconsistency (%d!=%d)\n",__LINE__,pen.end_x()-pen.x(),w); + printf("FAILURE! "__FILE__"@%d: iterator_x inconsistency (%ld!=%d)\n",__LINE__,pen.end_x()-pen.x(),w); return 1; } @@ -239,7 +239,7 @@ int box_blur_test(void) { for(x=0;x= w) ix = w-1; - if(ix-iy<=1 && iy-ix<=1 || iy==h/2 || ix==w/2) + if( (ix-iy<=1 && iy-ix<=1) || iy==h/2 || ix==w/2) f += 2; } }