From f4e6616b835e59000c86fb1ddfff2eb72981a0ad Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 15 Sep 2022 15:46:47 +0200 Subject: 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. --- source/blender/modifiers/intern/MOD_correctivesmooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3