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:
authorCampbell Barton <campbell@blender.org>2022-09-26 03:56:05 +0300
committerCampbell Barton <campbell@blender.org>2022-09-26 04:33:22 +0300
commit3961d3493be9c666850e71abe6102f72d3db9332 (patch)
tree83b903f8040f6384cbd4f702546db52a02bcd3dc /source/blender/makesdna
parent3a7dc572dc9bbad35bdff3a3aeca8eab0ccb3fb7 (diff)
Cleanup: use 'u' prefixed integer types for brevity in C code
This also simplifies using function style casts when moving to C++.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/intern/dna_genfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c
index 42df7912e3a..d4a20a29bf7 100644
--- a/source/blender/makesdna/intern/dna_genfile.c
+++ b/source/blender/makesdna/intern/dna_genfile.c
@@ -790,13 +790,13 @@ static void cast_primitive_type(const eSDNA_Type old_type,
*new_data = (char)old_value_i;
break;
case SDNA_TYPE_UCHAR:
- *((unsigned char *)new_data) = (unsigned char)old_value_i;
+ *((uchar *)new_data) = (uchar)old_value_i;
break;
case SDNA_TYPE_SHORT:
*((short *)new_data) = (short)old_value_i;
break;
case SDNA_TYPE_USHORT:
- *((unsigned short *)new_data) = (unsigned short)old_value_i;
+ *((ushort *)new_data) = (ushort)old_value_i;
break;
case SDNA_TYPE_INT:
*((int *)new_data) = (int)old_value_i;