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:
authorBastien Montagne <bastien@blender.org>2022-09-15 16:46:47 +0300
committerBastien Montagne <bastien@blender.org>2022-09-15 16:46:47 +0300
commitf4e6616b835e59000c86fb1ddfff2eb72981a0ad (patch)
treedbbae4dc9b7cb82d8c2377a64fe02ff3c8be35b7
parentc41249d43638666abef3d5a46e71de7a8e162298 (diff)
Fix warning-as-errors in older GCC's.
Recent compilers (at least gcc 11 and 12) do not report any issue, but gcc 10 does.
-rw-r--r--source/blender/modifiers/intern/MOD_correctivesmooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c b/source/blender/modifiers/intern/MOD_correctivesmooth.c
index c571a881714..5e5a64ec0e6 100644
--- a/source/blender/modifiers/intern/MOD_correctivesmooth.c
+++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c
@@ -143,7 +143,7 @@ static void mesh_get_boundaries(Mesh *mesh, float *smooth_weights)
int j;
for (j = 0; j < totloop; j++) {
uint8_t *e_value = &boundaries[mloop[p->loopstart + j].e];
- *e_value |= (*e_value) + 1;
+ *e_value |= (*e_value) + (uint8_t)1;
}
}