[Bf-blender-cvs] [fbc74c9d938] master: Fix warning-as-errors in older GCC's, take 2.

Bastien Montagne noreply at git.blender.org
Thu Sep 15 15:59:30 CEST 2022


Commit: fbc74c9d938cd06eb952cc1d66f7d00fb00b50ea
Author: Bastien Montagne
Date:   Thu Sep 15 15:58:21 2022 +0200
Branches: master
https://developer.blender.org/rBfbc74c9d938cd06eb952cc1d66f7d00fb00b50ea

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!

===================================================================

M	source/blender/modifiers/intern/MOD_correctivesmooth.c

===================================================================

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);
     }
   }



More information about the Bf-blender-cvs mailing list