diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-23 09:09:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-23 09:09:30 +0300 |
commit | 87b3e62b3d2110d4701e49389492f1b3528c9cdf (patch) | |
tree | 0c588f3b123b1bac5490d44e870383dc72ab6527 /source/blender/editors/space_view3d | |
parent | 0287b394680441b6836c43b8f01512c1c8e37800 (diff) |
Cleanup: warnings
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 0be1ad66ec8..520ad4f89b4 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1589,8 +1589,8 @@ unsigned int ED_view3d_backbuf_sample_rect( /* get x,y pixel coords from the offset * (manhatten distance in keeping with other screen-based selection) */ *r_dist = (float)( - abs(((tbuf - buf->rect) % size) - (size / 2)) + - abs(((tbuf - buf->rect) / size) - (size / 2))); + abs(((int)(tbuf - buf->rect) % size) - (size / 2)) + + abs(((int)(tbuf - buf->rect) / size) - (size / 2))); /* indices start at 1 here */ index = (*tbuf - min) + 1; |