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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/view2d.c2
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c
index d2907cb03ea..f530130025b 100644
--- a/source/blender/editors/interface/view2d.c
+++ b/source/blender/editors/interface/view2d.c
@@ -76,7 +76,7 @@ BLI_INLINE int clamp_float_to_int(const float f)
return min;
}
else if (UNLIKELY(f > max)) {
- return max;
+ return (int)max;
}
else {
return (int)f;
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index cc462631647..f9bfe4be866 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1130,7 +1130,7 @@ static float brush_strength(
return alpha * pressure * feather;
}
BLI_assert(!"Not supposed to happen");
- break;
+ return 0.0f;
case SCULPT_TOOL_CREASE:
case SCULPT_TOOL_BLOB: