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:
authorBrecht Van Lommel <brecht@blender.org>2022-06-22 20:02:52 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-06-23 20:22:50 +0300
commitdc64673f6e096408f5bf5ba646512aebac4e0a59 (patch)
treeeab2f9afc7e5479095871bbaf4afcf8ff71aba3c /source/blender/makesrna/intern/makesrna.c
parent56435b3268bceaf24c13336976c84a91a33f9283 (diff)
Fix T97691: undefined behavior sanitizer warning for alignment in RNA functions
Thanks Loren Osborn for investigating this and proposing solutions. Ref D14798
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r--source/blender/makesrna/intern/makesrna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 400944d60d4..b5354514205 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -3030,7 +3030,7 @@ static void rna_def_function_funcs(FILE *f, StructDefRNA *dsrna, FunctionDefRNA
}
if (dparm->next) {
- fprintf(f, "\t_data += %d;\n", rna_parameter_size(dparm->prop));
+ fprintf(f, "\t_data += %d;\n", rna_parameter_size_pad(rna_parameter_size(dparm->prop)));
}
}