[Bf-blender-cvs] [f4e6616b835] master: Fix warning-as-errors in older GCC's.
Bastien Montagne
noreply at git.blender.org
Thu Sep 15 15:47:48 CEST 2022
Commit: f4e6616b835e59000c86fb1ddfff2eb72981a0ad
Author: Bastien Montagne
Date: Thu Sep 15 15:46:47 2022 +0200
Branches: master
https://developer.blender.org/rBf4e6616b835e59000c86fb1ddfff2eb72981a0ad
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.
===================================================================
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 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;
}
}
More information about the Bf-blender-cvs
mailing list