diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-23 01:16:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-23 01:16:59 +0400 |
commit | d2a37d464a81959eb3409115f320c83af4398934 (patch) | |
tree | 20fea786bd6d1fc8113c3ea7c2c5dab437ff52ff /source/blender/editors/transform/transform_conversions.c | |
parent | 1a81499d413e748a26b5f51c5488f257b404e48e (diff) |
code cleanup: double promotion warnings
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 8289cd0b10f..213a22b2c10 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -3722,9 +3722,9 @@ void flushTransGraphData(TransInfo *t) switch (sipo->autosnap) { case SACTSNAP_FRAME: /* snap to nearest frame (or second if drawing seconds) */ if (sipo->flag & SIPO_DRAWTIME) - td2d->loc[0] = (float)(floorf((td2d->loc[0]/secf) + 0.5f) * secf); + td2d->loc[0] = floorf((td2d->loc[0] / secf) + 0.5) * secf; else - td2d->loc[0] = (float)(floorf(td2d->loc[0]+0.5f)); + td2d->loc[0] = floorf(td2d->loc[0] + 0.5); break; case SACTSNAP_MARKER: /* snap to nearest marker */ |