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>2019-09-19 06:32:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-19 06:33:44 +0300
commit86590b90aa78c7087a588275030a4f1490e37297 (patch)
tree560e5cdaf0ac15f2666d2163373e0292f4edb5d5 /source/blender/modifiers/intern/MOD_smooth.c
parentd8a7e5ee324ef4648a317ef232aae5b5a8ed991f (diff)
Cleanup: use uint,ushort,uchar for modifiers
Diffstat (limited to 'source/blender/modifiers/intern/MOD_smooth.c')
-rw-r--r--source/blender/modifiers/intern/MOD_smooth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_smooth.c b/source/blender/modifiers/intern/MOD_smooth.c
index 59d5b2ccbd2..3542df24f49 100644
--- a/source/blender/modifiers/intern/MOD_smooth.c
+++ b/source/blender/modifiers/intern/MOD_smooth.c
@@ -85,14 +85,14 @@ static void smoothModifier_do(
MEdge *medges = NULL;
int i, j, numDMEdges, defgrp_index;
- unsigned char *uctmp;
+ uchar *uctmp;
float *ftmp, fac, facm;
ftmp = (float *)MEM_calloc_arrayN(numVerts, 3 * sizeof(float), "smoothmodifier_f");
if (!ftmp) {
return;
}
- uctmp = (unsigned char *)MEM_calloc_arrayN(numVerts, sizeof(unsigned char), "smoothmodifier_uc");
+ uctmp = (uchar *)MEM_calloc_arrayN(numVerts, sizeof(uchar), "smoothmodifier_uc");
if (!uctmp) {
if (ftmp) {
MEM_freeN(ftmp);
@@ -120,7 +120,7 @@ static void smoothModifier_do(
for (i = 0; i < numDMEdges; i++) {
float fvec[3];
float *v1, *v2;
- unsigned int idx1, idx2;
+ uint idx1, idx2;
idx1 = medges[i].v1;
idx2 = medges[i].v2;
@@ -204,7 +204,7 @@ static void smoothModifier_do(
}
memset(ftmp, 0, 3 * sizeof(float) * numVerts);
- memset(uctmp, 0, sizeof(unsigned char) * numVerts);
+ memset(uctmp, 0, sizeof(uchar) * numVerts);
}
MEM_freeN(ftmp);