Fix bugs found by g++ 4.3.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 25 Jan 2008 14:22:57 +0000 (14:22 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 25 Jan 2008 14:22:57 +0000 (14:22 +0000)
git-svn-id: http://svn.voria.com/code@1478 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/lyr_std/warp.cpp

index ec56596..c41fe04 100644 (file)
@@ -710,7 +710,7 @@ Warp::accelerated_render(Context context,Surface *surface,int quality, const Ren
                                else
                                        (*surface)[y][x]=source.cubic_sample(u,v);
                        }
-                       if(y&31==0 && cb)
+                       if((y&31)==0 && cb)
                        {
                                if(!stagetwo.amount_complete(y,surface->get_h()))
                                        return false;
@@ -744,7 +744,7 @@ Warp::accelerated_render(Context context,Surface *surface,int quality, const Ren
                                else
                                        (*surface)[y][x]=source.linear_sample(u,v);
                        }
-                       if(y&31==0 && cb)
+                       if((y&31)==0 && cb)
                        {
                                if(!stagetwo.amount_complete(y,surface->get_h()))
                                        return false;
@@ -778,7 +778,7 @@ Warp::accelerated_render(Context context,Surface *surface,int quality, const Ren
                                        //pen.set_value(source[v][u]);
                                        (*surface)[y][x]=source[floor_to_int(v)][floor_to_int(u)];
                        }
-                       if(y&31==0 && cb)
+                       if((y&31)==0 && cb)
                        {
                                if(!stagetwo.amount_complete(y,surface->get_h()))
                                        return false;