From fbc74c9d938cd06eb952cc1d66f7d00fb00b50ea Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 15 Sep 2022 15:58:21 +0200 Subject: Fix warning-as-errors in older GCC's, take 2. rBf4e6616b835e did not work for `some reason`, this one has been verified with gcc 10! --- source/blender/modifiers/intern/MOD_correctivesmooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c b/source/blender/modifiers/intern/MOD_correctivesmooth.c index 5e5a64ec0e6..f9c6cf8416d 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) + (uint8_t)1; + *e_value |= (uint8_t)((*e_value) + 1); } } -- cgit v1.2.3