Commit aeb674b4 authored by Adam Turcotte's avatar Adam Turcotte Committed by Øyvind "pippin" Kolås

Fixed compiler warnings by replacing bit-shifts with divisions

parent 36ad17d9
......@@ -277,10 +277,10 @@ gegl_sampler_get_ptr (GeglSampler *const sampler,
*/
fetch_rectangle.x =
x + sampler->context_rect[0].x
- ( maximum_width_and_height - sampler->context_rect[0].width ) >> 3;
- ( maximum_width_and_height - sampler->context_rect[0].width ) / 8;
fetch_rectangle.y =
y + sampler->context_rect[0].y
- ( maximum_width_and_height - sampler->context_rect[0].height ) >> 3;
- ( maximum_width_and_height - sampler->context_rect[0].height ) / 8;
fetch_rectangle.width = maximum_width_and_height;
fetch_rectangle.height = maximum_width_and_height;
......@@ -352,9 +352,9 @@ gegl_sampler_get_from_buffer (GeglSampler *const sampler,
GeglRectangle fetch_rectangle;
fetch_rectangle.x =
x - ( maximum_width_and_height - sampler->context_rect[0].width ) >> 3;
x - ( maximum_width_and_height - sampler->context_rect[0].width ) / 8;
fetch_rectangle.y =
y - ( maximum_width_and_height - sampler->context_rect[0].height ) >> 3;
y - ( maximum_width_and_height - sampler->context_rect[0].height ) / 8;
fetch_rectangle.width = maximum_width_and_height;
fetch_rectangle.height = maximum_width_and_height;
......@@ -446,10 +446,10 @@ gegl_sampler_get_from_mipmap (GeglSampler *const sampler,
*/
fetch_rectangle.x =
x + sampler->context_rect[level].x
- ( maximum_width_and_height - sampler->context_rect[level].width ) >> 3;
- ( maximum_width_and_height - sampler->context_rect[level].width ) / 8;
fetch_rectangle.y =
y + sampler->context_rect[level].y
- ( maximum_width_and_height - sampler->context_rect[level].height ) >> 3;
- ( maximum_width_and_height - sampler->context_rect[level].height ) / 8;
fetch_rectangle.width = maximum_width_and_height;
fetch_rectangle.height = maximum_width_and_height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment