diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-27 10:29:57 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-27 10:29:57 +0300 |
commit | 7b6b740ace1e56a8217fb44ed9fd3cf0c0a324f4 (patch) | |
tree | 1cad6b26f7b999ad5f8dafe1002fb397d997f719 /source/blender/makesrna/intern/rna_define.c | |
parent | e1c0d18598546040b2c5f130d720d45d38639910 (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/makesrna/intern/rna_define.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_define.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c index a747a5d11d8..44b642d0fcc 100644 --- a/source/blender/makesrna/intern/rna_define.c +++ b/source/blender/makesrna/intern/rna_define.c @@ -4424,7 +4424,7 @@ int rna_parameter_size(PropertyRNA *parm) int rna_parameter_size_pad(const int size) { /* Pad parameters in memory so the next parameter is properly aligned. - * This silences warnings in ubsan. More complicated logic to pack parameters + * This silences warnings in UBSAN. More complicated logic to pack parameters * more tightly in memory is unlikely to improve performance, and aligning * to the requirements for pointers is enough for all data types we use. */ const int alignment = sizeof(void *); @@ -4445,7 +4445,7 @@ void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropert #endif } else if (tot >= 8 && (tot & (tot - 1)) == 0) { - /* power of two > 8 */ + /* Power of two > 8. */ *items = MEM_recallocN_id(*items, sizeof(EnumPropertyItem) * tot * 2, __func__); #ifdef DEBUG memset((*items) + tot, 0xff, sizeof(EnumPropertyItem) * tot); @@ -4477,8 +4477,8 @@ void RNA_enum_items_add_value(EnumPropertyItem **items, for (; item->identifier; item++) { if (item->value == value) { RNA_enum_item_add(items, totitem, item); - /* break on first match - does this break anything? - * (is quick hack to get object->parent_type working ok for armature/lattice) */ + /* Break on first match - does this break anything? + * (is quick hack to get `object->parent_type` working ok for armature/lattice). */ break; } } |