Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-23 01:16:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-23 01:16:59 +0400
commitd2a37d464a81959eb3409115f320c83af4398934 (patch)
tree20fea786bd6d1fc8113c3ea7c2c5dab437ff52ff /source/blender/blenkernel/intern/brush.c
parent1a81499d413e748a26b5f51c5488f257b404e48e (diff)
code cleanup: double promotion warnings
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index f019287144d..741d4b729ae 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -1329,7 +1329,7 @@ struct ImBuf *BKE_brush_gen_radial_control_imbuf(Brush *br)
for (i = 0; i < side; ++i) {
for (j = 0; j < side; ++j) {
- float magn = sqrt(pow(i - half, 2) + pow(j - half, 2));
+ float magn = sqrtf(powf(i - half, 2) + powf(j - half, 2));
im->rect_float[i * side + j] = BKE_brush_curve_strength_clamp(br, magn, half);
}
}