Mercurial > hg > CbC > old > device
diff test/obsf2.c @ 880:5313ed059cee
no tabs in source
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 03 Apr 2014 10:43:01 +0900 |
parents | c55337499f96 |
children | d712ee10feb7 |
line wrap: on
line diff
--- a/test/obsf2.c Thu Apr 03 10:34:02 2014 +0900 +++ b/test/obsf2.c Thu Apr 03 10:43:01 2014 +0900 @@ -39,7 +39,7 @@ y=y<0?-y:y; if(y<x){ if( q.x<p.x) - W(&p,&q); + W(&p,&q); v=p.y<=q.y?1:-1; w=(y%x)/2; for(; p.x<=q.x; p.x++){ @@ -55,8 +55,8 @@ for(; p.y<=q.y; p.y++){ o(p.x,q.y); if((w-=x)<=0) - w+= y, - p.x+=v; + w+= y, + p.x+=v; } } } extern int rand();