From 9ebf8a0c35a5f59133fcf883f0c818354ed0dd5e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 5 May 2022 11:38:51 +0200 Subject: Cleanup: Use unsigned short for mesh flag Solves the compilation warning about sign change when the default flags are cast from int to short. --- source/blender/makesdna/DNA_mesh_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index b98c9dd2886..97e057361c1 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -280,7 +280,7 @@ typedef struct Mesh { /** Various flags used when editing the mesh. */ char editflag; /** Mostly more flags used when editing or displaying the mesh. */ - short flag; + unsigned short flag; /** * The angle for auto smooth in radians. `M_PI` (180 degrees) causes all edges to be smooth. -- cgit v1.2.3