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>2015-04-14 03:30:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-14 03:34:32 +0300
commitc448196bb4c99b13cdaaf0e197a9f44a46b3bc18 (patch)
tree3461665d470b8be77c70adcb957ef4fbe86b5d28 /source/blender/modifiers/intern
parentaf2f4724d57ac11d45e22db97fa797676c44d091 (diff)
Cleanup: warnings
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_correctivesmooth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c b/source/blender/modifiers/intern/MOD_correctivesmooth.c
index 82c1d6f2ec8..295f303974d 100644
--- a/source/blender/modifiers/intern/MOD_correctivesmooth.c
+++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c
@@ -607,7 +607,7 @@ static void correctivesmooth_modifier_do(
/* If the number of verts has changed, the bind is invalid, so we do nothing */
if (csmd->rest_source == MOD_CORRECTIVESMOOTH_RESTSOURCE_BIND) {
if (csmd->bind_coords_num != numVerts) {
- modifier_setError(md, "Bind vertex count mismatch: %d to %d", csmd->bind_coords_num, numVerts);
+ modifier_setError(md, "Bind vertex count mismatch: %u to %u", csmd->bind_coords_num, numVerts);
goto error;
}
}
@@ -618,10 +618,10 @@ static void correctivesmooth_modifier_do(
goto error;
}
else {
- int me_numVerts = (em) ? em->bm->totvert : ((Mesh *)ob->data)->totvert;
+ unsigned int me_numVerts = (unsigned int)((em) ? em->bm->totvert : ((Mesh *)ob->data)->totvert);
- if ((unsigned int)me_numVerts != numVerts) {
- modifier_setError(md, "Original vertex count mismatch: %d to %d", me_numVerts, numVerts);
+ if (me_numVerts != numVerts) {
+ modifier_setError(md, "Original vertex count mismatch: %u to %u", me_numVerts, numVerts);
goto error;
}
}