[gegl] Fixed compiler warnings by replacing bit-shifts with divisions
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Fixed compiler warnings by replacing bit-shifts with divisions
- Date: Fri, 1 Jul 2011 03:42:39 +0000 (UTC)
commit aeb674b405a4cd564538eac09aeb0561c8632d61
Author: Adam Turcotte <aturcotte src gnome org>
Date: Thu Jun 30 15:46:03 2011 -0400
Fixed compiler warnings by replacing bit-shifts with divisions
gegl/buffer/gegl-sampler.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index 3a2f491..24a1de9 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]