[Bf-blender-cvs] [9ebf8a0c35a] master: Cleanup: Use unsigned short for mesh flag
Sergey Sharybin
noreply at git.blender.org
Thu May 5 11:50:51 CEST 2022
Commit: 9ebf8a0c35a5f59133fcf883f0c818354ed0dd5e
Author: Sergey Sharybin
Date: Thu May 5 11:38:51 2022 +0200
Branches: master
https://developer.blender.org/rB9ebf8a0c35a5f59133fcf883f0c818354ed0dd5e
Cleanup: Use unsigned short for mesh flag
Solves the compilation warning about sign change when the
default flags are cast from int to short.
===================================================================
M source/blender/makesdna/DNA_mesh_types.h
===================================================================
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.
More information about the Bf-blender-cvs
mailing list