[Bf-blender-cvs] [891949cbb47] master: Cleanup: use 'u' prefixed integer types for brevity & cast style

Campbell Barton noreply at git.blender.org
Sun Sep 25 10:27:08 CEST 2022


Commit: 891949cbb47143420f4324cb60efc05ef5d70b39
Author: Campbell Barton
Date:   Sun Sep 25 17:04:52 2022 +1000
Branches: master
https://developer.blender.org/rB891949cbb47143420f4324cb60efc05ef5d70b39

Cleanup: use 'u' prefixed integer types for brevity & cast style

To use function style cast '(unsigned char)x' can't be replaced by
'unsigned char(x)'.

===================================================================

M	source/blender/blendthumb/src/blendthumb_png.cc
M	source/blender/blenfont/intern/blf.c
M	source/blender/blenfont/intern/blf_util.c
M	source/blender/blenkernel/intern/DerivedMesh.cc
M	source/blender/blenkernel/intern/armature.c
M	source/blender/blenkernel/intern/armature_deform.c
M	source/blender/blenkernel/intern/camera.c
M	source/blender/blenkernel/intern/cdderivedmesh.c
M	source/blender/blenkernel/intern/cloth.c
M	source/blender/blenkernel/intern/collision.c
M	source/blender/blenkernel/intern/cryptomatte.cc
M	source/blender/blenkernel/intern/curve.cc
M	source/blender/blenkernel/intern/customdata.cc
M	source/blender/blenkernel/intern/deform.c
M	source/blender/blenkernel/intern/dynamicpaint.c
M	source/blender/blenkernel/intern/fcurve.c
M	source/blender/blenkernel/intern/fmodifier.c
M	source/blender/blenkernel/intern/icons.cc
M	source/blender/blenkernel/intern/icons_rasterize.c
M	source/blender/blenkernel/intern/image.cc
M	source/blender/blenkernel/intern/image_gen.c
M	source/blender/blenkernel/intern/image_save.cc
M	source/blender/blenkernel/intern/lattice.c
M	source/blender/blenkernel/intern/main_idmap.c
M	source/blender/blenkernel/intern/main_namemap.cc
M	source/blender/blenkernel/intern/mask_evaluate.c
M	source/blender/blenkernel/intern/mask_rasterize.c
M	source/blender/blenkernel/intern/material.c
M	source/blender/blenkernel/intern/mball_tessellate.c
M	source/blender/blenkernel/intern/mesh_mapping.cc
M	source/blender/blenkernel/intern/movieclip.c
M	source/blender/blenkernel/intern/node.cc
M	source/blender/blenkernel/intern/object.cc
M	source/blender/blenkernel/intern/object_dupli.cc
M	source/blender/blenkernel/intern/particle.c
M	source/blender/blenkernel/intern/particle_distribute.c
M	source/blender/blenkernel/intern/pbvh.c
M	source/blender/blenkernel/intern/pbvh.cc
M	source/blender/blenkernel/intern/pbvh_bmesh.c
M	source/blender/blenkernel/intern/pointcache.c
M	source/blender/blenkernel/intern/scene.cc
M	source/blender/blenkernel/intern/shrinkwrap.c
M	source/blender/blenkernel/intern/softbody.c
M	source/blender/blenkernel/intern/studiolight.c
M	source/blender/blenkernel/intern/subdiv_ccg.c
M	source/blender/blenkernel/intern/subsurf_ccg.c
M	source/blender/blenkernel/intern/text.c
M	source/blender/blenkernel/intern/tracking_region_tracker.c
M	source/blender/blenkernel/intern/vfont.c
M	source/blender/blenkernel/intern/writeffmpeg.c
M	source/blender/blenlib/intern/BLI_args.c
M	source/blender/blenlib/intern/BLI_filelist.c
M	source/blender/blenlib/intern/BLI_ghash_utils.c
M	source/blender/blenlib/intern/BLI_kdopbvh.c
M	source/blender/blenlib/intern/BLI_memarena.c
M	source/blender/blenlib/intern/array_store_utils.c
M	source/blender/blenlib/intern/endian_switch.c
M	source/blender/blenlib/intern/hash_mm2a.c
M	source/blender/blenlib/intern/jitter_2d.c
M	source/blender/blenlib/intern/lasso_2d.c
M	source/blender/blenlib/intern/math_color.c
M	source/blender/blenlib/intern/math_geom.c
M	source/blender/blenlib/intern/math_interp.c
M	source/blender/blenlib/intern/math_rotation.c
M	source/blender/blenlib/intern/mesh_intersect.cc
M	source/blender/blenlib/intern/noise.c
M	source/blender/blenlib/intern/path_util.c
M	source/blender/blenlib/intern/rand.cc
M	source/blender/blenlib/intern/scanfill.c
M	source/blender/blenlib/intern/scanfill_utils.c
M	source/blender/blenlib/intern/stack.c
M	source/blender/blenlib/intern/string_utf8.c
M	source/blender/blenlib/intern/threads.cc
M	source/blender/blenlib/tests/BLI_array_store_test.cc
M	source/blender/blenlib/tests/BLI_ghash_test.cc
M	source/blender/blenlib/tests/BLI_hash_mm2a_test.cc
M	source/blender/blenlib/tests/BLI_polyfill_2d_test.cc
M	source/blender/blenlib/tests/BLI_stack_cxx_test.cc
M	source/blender/blenlib/tests/BLI_stack_test.cc
M	source/blender/blenlib/tests/BLI_string_test.cc
M	source/blender/blenlib/tests/performance/BLI_ghash_performance_test.cc
M	source/blender/blenloader/intern/versioning_300.cc
M	source/blender/bmesh/intern/bmesh_mesh_convert.cc
M	source/blender/compositor/intern/COM_CPUDevice.cc
M	source/blender/compositor/intern/COM_ChunkOrder.cc
M	source/blender/compositor/intern/COM_ExecutionGroup.cc
M	source/blender/compositor/intern/COM_MemoryBuffer.cc
M	source/blender/compositor/intern/COM_MemoryProxy.cc
M	source/blender/compositor/intern/COM_Node.cc
M	source/blender/compositor/intern/COM_NodeOperation.cc
M	source/blender/compositor/intern/COM_OpenCLDevice.cc
M	source/blender/compositor/intern/COM_TiledExecutionModel.cc
M	source/blender/compositor/intern/COM_WorkScheduler.cc
M	source/blender/compositor/operations/COM_AntiAliasOperation.cc
M	source/blender/compositor/operations/COM_CompositorOperation.cc
M	source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cc
M	source/blender/compositor/operations/COM_FastGaussianBlurOperation.cc
M	source/blender/compositor/operations/COM_GlareFogGlowOperation.cc
M	source/blender/compositor/operations/COM_GlareStreaksOperation.cc
M	source/blender/compositor/operations/COM_ImageOperation.cc
M	source/blender/compositor/operations/COM_KeyingScreenOperation.cc
M	source/blender/compositor/operations/COM_MaskOperation.cc
M	source/blender/compositor/operations/COM_MultilayerImageOperation.cc
M	source/blender/compositor/operations/COM_OutputFileMultiViewOperation.cc
M	source/blender/compositor/operations/COM_OutputFileOperation.cc
M	source/blender/compositor/operations/COM_PreviewOperation.cc
M	source/blender/compositor/operations/COM_RenderLayersProg.cc
M	source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc
M	source/blender/compositor/operations/COM_ViewerOperation.cc
M	source/blender/compositor/operations/COM_WriteBufferOperation.cc
M	source/blender/compositor/realtime_compositor/intern/shader_operation.cc
M	source/blender/datatoc/datatoc_icon.c
M	source/blender/depsgraph/intern/depsgraph_physics.cc
M	source/blender/depsgraph/intern/depsgraph_tag.cc
M	source/blender/depsgraph/intern/eval/deg_eval_flush.cc
M	source/blender/draw/intern/draw_cache_impl_subdivision.cc
M	source/blender/draw/intern/draw_instance_data.c
M	source/blender/editors/gpencil/gpencil_select.c
M	source/blender/editors/gpencil/gpencil_trace_utils.c
M	source/blender/editors/mesh/editmesh_utils.c
M	source/blender/editors/object/object_bake_api.c
M	source/blender/editors/sculpt_paint/paint_image_2d_curve_mask.cc
M	source/blender/editors/space_sequencer/sequencer_draw.c
M	source/blender/editors/util/ed_util_imbuf.c
M	source/blender/freestyle/intern/application/AppCanvas.cpp
M	source/blender/freestyle/intern/application/Controller.cpp
M	source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp
M	source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp
M	source/blender/freestyle/intern/geometry/FastGrid.cpp
M	source/blender/freestyle/intern/geometry/GeomCleaner.cpp
M	source/blender/freestyle/intern/geometry/GeomUtils.cpp
M	source/blender/freestyle/intern/geometry/Grid.cpp
M	source/blender/freestyle/intern/image/ImagePyramid.cpp
M	source/blender/freestyle/intern/python/BPy_Convert.cpp
M	source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp
M	source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
M	source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
M	source/blender/freestyle/intern/python/BPy_Operators.cpp
M	source/blender/freestyle/intern/python/BPy_SShape.cpp
M	source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
M	source/blender/freestyle/intern/python/BPy_ViewShape.cpp
M	source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
M	source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp
M	source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp
M	source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp
M	source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadSteerableViewMapPixelF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetDirectionalViewMapDensityF1D.cpp
M	source/blender/freestyle/intern/scene_graph/IndexedFaceSet.cpp
M	source/blender/freestyle/intern/scene_graph/NodeTransform.cpp
M	source/blender/freestyle/intern/scene_graph/SceneHash.cpp
M	source/blender/freestyle/intern/scene_graph/ScenePrettyPrinter.cpp
M	source/blender/freestyle/intern/stroke/Canvas.cpp
M	source/blender/freestyle/intern/system/PseudoNoise.cpp
M	source/blender/freestyle/intern/system/RandGen.cpp
M	source/blender/freestyle/intern/system/StringUtils.cpp
M	source/blender/freestyle/intern/view_map/BoxGrid.cpp
M	source/blender/freestyle/intern/view_map/CulledOccluderSource.cpp
M	source/blender/freestyle/intern/view_map/FEdgeXDetector.cpp
M	source/blender/freestyle/intern/view_map/Functions0D.cpp
M	source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
M	source/blender/freestyle/intern/view_map/SphericalGrid.cpp
M	source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
M	source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
M	source/blender/freestyle/intern/winged_edge/WEdge.cpp
M	source/blender/freestyle/intern/winged_edge/WXEdge.cpp
M	source/blender/freestyle/intern/winged_edge/WXEdgeBuilder.cpp
M	source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp
M	source/blender/gpencil_modifiers/intern/lineart/lineart_shadow.c
M	source/blender/gpencil_modifiers/intern/lineart/lineart_util.c
M	source/blender/gpu/intern/gpu_framebuffer.cc
M	source/blender/gpu/intern/gpu_node_graph.c
M	source/blender/gpu/intern/gpu_shader_builder_stubs.cc
M	source/blender/ikplugin/intern/itasc_plugin.cpp
M	source/blender/imbuf/intern/thumbs_font.c
M	source/blender/io/alembic/exporter/abc_archive.cc
M	source/blender/io/alembic/exporter/abc_writer_hair.cc
M	source/blender/io/alembic/intern/abc_customdata.cc
M	source/blender/io/alembic/intern/abc_reader_mesh.cc
M	source/blender/io/avi/intern/avi.c
M	source/blender/io/avi/intern/avi_mjpeg.c
M	source/blender/io/avi/intern/avi_rgb.c
M	source/blender/io/avi/intern/avi_rgb32.c
M	source/blender/io/collada/AnimationExporter.cpp
M	source/blender/io/collada/AnimationImporter.cpp
M	source/blender/io/collada/ArmatureImporter.cpp
M	source/blender/io/collada/DocumentImporter.cpp
M	source/blender/io/collada/EffectExporter.cpp
M	source/blender/io/collada/ExtraHandler.cpp
M	source/blender/io/collada/GeometryExporter.cpp
M	source/blender/io/collada/MeshImporter.cpp
M	source/blender/io/collada/SkinInfo.cpp
M	source/blender/io/collada/TransformReader.cpp
M	source/blender/io/collada/collada_internal.cpp
M	source/blender/io/collada/collada_utils.cpp
M	source/blender/io/gpencil/intern/gpencil_io_import_svg.cc
M	source/blender/io/usd/intern/usd_reader_mesh.cc
M	source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc
M	source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc
M	source/blender/makesdna/intern/dna_genfile.c
M	source/blender/makesrna/intern/makesrna.c
M	source/blender/makesrna/intern/rna_access.c
M	source/blender/render/intern/bake.c
M	source/blender/render/intern/pipeline.cc
M	source/blender/render/intern/render_result.cc
M	source/blender/sequencer/intern/animation.c
M	source/blender/sequencer/intern/disk_cache.c
M	source/blender/sequencer/intern/effects.c
M	source/blender/sequencer/intern/image_cache.c
M	source/blender/sequencer/intern/modifier.c
M	source/blender/sequencer/intern/render.c
M	source/blender/simulation/intern/SIM_mass_spring.cpp
M	source/blender/simulation/intern/hair_volume.cpp
M	source/blender/simulation/intern/implicit_blender.c
M	source/blender/windowmanager/intern/wm_dragdrop.cc
M	source/blender/windowmanager/intern/wm_event_system.cc
M	source/blender/windowmanager/intern/wm_gesture.c
M	source/blender/windowmanager/intern/wm_jobs.c
M	source/blender/windowmanager/intern/wm_playanim.c
M	source/blender/windowmanager/intern/wm_window.c
M	source/blender/windowmanager/message_bus/intern/wm_message_bus_rna.c
M	source/creator/creator_args.c

===================================================================

diff --git a/source/blender/blendthumb/src/blendthumb_png.cc b/source/blender/blendthumb/src/blendthumb_png.cc
index 64326c9abb1..e3e3e929e63 100644
--- a/source/blender/blendthumb/src/blendthumb_png.cc
+++ b/source/blender/blendthumb/src/blendthumb_png.cc
@@ -61,7 +61,7 @@ static blender::Vector<uint8_t> filtered_rows_from_thumb(const Thumbnail *thumb)
 
 static std::optional<blender::Vector<uint8_t>> zlib_compress(const blender::Vector<uint8_t> &data)
 {
-  unsigned long uncompressed_size = data.size();
+  ulong uncompressed_size = data.size();
   uLongf compressed_size = compressBound(uncompressed_size);
 
   blender::Vector<uint8_t> compressed(compressed_size, 0x00);
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c
index 4e904768f79..df8a9734c9a 100644
--- a/source/blender/blenfont/intern/blf.c
+++ b/source/blender/blenfont/intern/blf.c
@@ -117,7 +117,7 @@ static int blf_search_available(void)
   return -1;
 }
 
-bool BLF_has_glyph(int fontid, unsigned int unicode)
+bool BLF_has_glyph(int fontid, uint unicode)
 {
   FontBLF *font = blf_get(fontid);
   if (font) {
@@ -174,7 +174,7 @@ int BLF_load_unique(const char *name)
   return i;
 }
 
-void BLF_metrics_attach(int fontid, unsigned char *mem, int mem_size)
+void BLF_metrics_attach(int fontid, uchar *mem, int mem_size)
 {
   FontBLF *font = blf_get(fontid);
 
@@ -183,7 +183,7 @@ void BLF_metrics_attach(int fontid, unsigned char *mem, int mem_size)
   }
 }
 
-int BLF_load_mem(const char *name, const unsigned char *mem, int mem_size)
+int BLF_load_mem(const char *name, const uchar *mem, int mem_size)
 {
   int i = blf_search(name);
   if (i >= 0) {
@@ -193,7 +193,7 @@ int BLF_load_mem(const char *name, const unsigned char *mem, int mem_size)
   return BLF_load_mem_unique(name, mem, mem_size);
 }
 
-int BLF_load_mem_unique(const char *name, const unsigned char *mem, int mem_size)
+int BLF_load_mem_unique(const char *name, const uchar *mem, int mem_size)
 {
   /*
    * Don't search in the cache, make a new object font!
@@ -379,7 +379,7 @@ void BLF_blur(int fontid, int size)
 }
 #endif
 
-void BLF_color4ubv(int fontid, const unsigned char rgba[4])
+void BLF_color4ubv(int fontid, const uchar rgba[4])
 {
   FontBLF *font = blf_get(fontid);
 
@@ -391,7 +391,7 @@ void BLF_color4ubv(int fontid, const unsigned char rgba[4])
   }
 }
 
-void BLF_color3ubv_alpha(int fontid, const unsigned char rgb[3], unsigned char alpha)
+void BLF_color3ubv_alpha(int fontid, const uchar rgb[3], uchar alpha)
 {
   FontBLF *font = blf_get(fontid);
 
@@ -403,13 +403,12 @@ void BLF_color3ubv_alpha(int fontid, const unsigned char rgb[3], unsigned char a
   }
 }
 
-void BLF_color3ubv(int fontid, const unsigned char rgb[3])
+void BLF_color3ubv(int fontid, const uchar rgb[3])
 {
   BLF_color3ubv_alpha(fontid, rgb, 255);
 }
 
-void BLF_color4ub(
-    int fontid, unsigned char r, unsigned char g, unsigned char b, unsigned char alpha)
+void BLF_color4ub(int fontid, uchar r, uchar g, uchar b, uchar alpha)
 {
   FontBLF *font = blf_get(fontid);
 
@@ -421,7 +420,7 @@ void BLF_color4ub(
   }
 }
 
-void BLF_color3ub(int fontid, unsigned char r, unsigned char g, unsigned char b)
+void BLF_color3ub(int fontid, uchar r, uchar g, uchar b)
 {
   FontBLF *font = blf_get(fontid);
 
@@ -814,7 +813,7 @@ void BLF_shadow_offset(int fontid, int x, int y)
 
 void BLF_buffer(int fontid,
                 float *fbuf,
-                unsigned char *cbuf,
+                uchar *cbuf,
                 int w,
                 int h,
                 int nch,
diff --git a/source/blender/blenfont/intern/blf_util.c b/source/blender/blenfont/intern/blf_util.c
index 09ddb56e53b..2243da4df18 100644
--- a/source/blender/blenfont/intern/blf_util.c
+++ b/source/blender/blenfont/intern/blf_util.c
@@ -15,7 +15,7 @@
 
 #include "blf_internal.h"
 
-unsigned int blf_next_p2(unsigned int x)
+uint blf_next_p2(uint x)
 {
   x -= 1;
   x |= (x >> 16);
@@ -27,9 +27,9 @@ unsigned int blf_next_p2(unsigned int x)
   return x;
 }
 
-unsigned int blf_hash(unsigned int val)
+uint blf_hash(uint val)
 {
-  unsigned int key;
+  uint key;
 
   key = val;
   key += ~(key << 16);
diff --git a/source/blender/blenkernel/intern/DerivedMesh.cc b/source/blender/blenkernel/intern/DerivedMesh.cc
index 375e7b456cd..b4cc46619a7 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.cc
+++ b/source/blender/blenkernel/intern/DerivedMesh.cc
@@ -279,8 +279,8 @@ bool DM_release(DerivedMesh *dm)
 
 void DM_ensure_looptri_data(DerivedMesh *dm)
 {
-  const unsigned int totpoly = dm->numPolyData;
-  const unsigned int totloop = dm->numLoopData;
+  const uint totpoly = dm->numPolyData;
+  const uint totloop = dm->numLoopData;
   const int looptris_num = poly_to_tri_count(totpoly, totloop);
 
   BLI_assert(dm->looptris.array_wip == nullptr);
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 9b00d427320..2e73cac99b5 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -698,7 +698,7 @@ void BKE_armature_refresh_layer_used(struct Depsgraph *depsgraph, struct bArmatu
 bool bone_autoside_name(
     char name[MAXBONENAME], int UNUSED(strip_number), short axis, float head, float tail)
 {
-  unsigned int len;
+  uint len;
   char basename[MAXBONENAME] = "";
   char extension[5] = "";
 
diff --git a/source/blender/blenkernel/intern/armature_deform.c b/source/blender/blenkernel/intern/armature_deform.c
index 84bb1af011a..4acbcbfb13e 100644
--- a/source/blender/blenkernel/intern/armature_deform.c
+++ b/source/blender/blenkernel/intern/armature_deform.c
@@ -314,7 +314,7 @@ static void armature_vert_task_with_dvert(const ArmatureUserdata *data,
   if (use_dverts && dvert && dvert->totweight) { /* use weight groups ? */
     const MDeformWeight *dw = dvert->dw;
     int deformed = 0;
-    unsigned int j;
+    uint j;
     for (j = dvert->totweight; j != 0; j--, dw++) {
       const uint index = dw->def_nr;
       if (index < data->defbase_len && (pchan = data->pchan_from_defbase[index])) {
diff --git a/source/blender/blenkernel/intern/camera.c b/source/blender/blenkernel/intern/camera.c
index c3384239cb6..e404c982d55 100644
--- a/source/blender/blenkernel/intern/camera.c
+++ b/source/blender/blenkernel/intern/camera.c
@@ -579,7 +579,7 @@ typedef struct CameraViewFrameData {
   float dist_vals[CAMERA_VIEWFRAME_NUM_PLANES];   /* distance (signed) */
   float camera_no[3];
   float z_range[2];
-  unsigned int tot;
+  uint tot;
 
   bool do_zrange;
 
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c
index bcdd01aa8b3..1f97f8a848c 100644
--- a/source/blender/blenkernel/intern/cdderivedmesh.c
+++ b/source/blender/blenkernel/intern/cdderivedmesh.c
@@ -115,8 +115,8 @@ static void cdDM_getVertNo(DerivedMesh *dm, int index, float r_no[3])
 static void cdDM_recalc_looptri(DerivedMesh *dm)
 {
   CDDerivedMesh *cddm = (CDDerivedMesh *)dm;
-  const unsigned int totpoly = dm->numPolyData;
-  const unsigned int totloop = dm->numLoopData;
+  const uint totpoly = dm->numPolyData;
+  const uint totloop = dm->numLoopData;
 
   DM_ensure_looptri_data(dm);
   BLI_assert(totpoly == 0 || cddm->dm.looptris.array_wip != NULL);
diff --git a/source/blender/blenkernel/intern/cloth.c b/source/blender/blenkernel/intern/cloth.c
index f3bda8b1c99..8c3098069c4 100644
--- a/source/blender/blenkernel/intern/cloth.c
+++ b/source/blender/blenkernel/intern/cloth.c
@@ -117,7 +117,7 @@ static BVHTree *bvhtree_build_from_cloth(ClothModifierData *clmd, float epsilon)
 
 void bvhtree_update_from_cloth(ClothModifierData *clmd, bool moving, bool self)
 {
-  unsigned int i = 0;
+  uint i = 0;
   Cloth *cloth = clmd->clothObject;
   BVHTree *bvhtree;
   ClothVertex *verts = cloth->verts;
@@ -252,7 +252,7 @@ static int do_step_cloth(
   Cloth *cloth;
   ListBase *effectors = NULL;
   MVert *mvert;
-  unsigned int i = 0;
+  uint i = 0;
   int ret = 0;
   bool vert_mass_changed = false;
 
@@ -576,7 +576,7 @@ void cloth_free_modifier_extern(ClothModifierData *clmd)
  */
 static void cloth_to_object(Object *ob, ClothModifierData *clmd, float (*vertexCos)[3])
 {
-  unsigned int i = 0;
+  uint i = 0;
   Cloth *cloth = clmd->clothObject;
 
   if (clmd->clothObject) {
@@ -825,8 +825,8 @@ static void cloth_from_mesh(ClothModifierData *clmd, const Object *ob, Mesh *mes
 {
   const MLoop *mloop = BKE_mesh_loops(mesh);
   const MLoopTri *looptri = BKE_mesh_runtime_looptri_ensure(mesh);
-  const unsigned int mvert_num = mesh->totvert;
-  const unsigned int looptri_num = mesh->runtime.looptris.len;
+  const uint mvert_num = mesh->totvert;
+  const uint looptri_num = mesh->runtime.looptris.len;
 
   /* Allocate our vertices. */
   clmd->clothObject->mvert_num = mvert_num;
@@ -884,7 +884,7 @@ BLI_INLINE void spring_verts_ordered_set(ClothSpring *spring, int v0, int v1)
   }
 }
 
-static void cloth_free_edgelist(LinkNodePair *edgelist, unsigned int mvert_num)
+static void cloth_free_edgelist(LinkNodePair *edgelist, uint mvert_num)
 {
   if (edgelist) {
     for (uint i = 0; i < mvert_num; i++) {
diff --git a/source/blender/blenkernel/intern/collision.c b/source/blender/blenkernel/intern/collision.c
index 0bacd657981..dc7a4968f59 100644
--- a/source/blender/blenkernel/intern/collision.c
+++ b/source/blender/blenkernel/intern/collision.c
@@ -67,7 +67,7 @@ void collision_move_object(CollisionModifierData *collmd,
                            const float prevstep,
                            const bool moving_bvh)
 {
-  unsigned int i = 0;
+  uint i = 0;
 
   /* the collider doesn't move this frame */
   if (collmd->is_static) {
diff --git a/source/blender/blenkernel/intern/cryptomatte.cc b/source/blender/blenkernel/intern/cryptomatte.cc
index 72204f6624e..e5f85f6aecf 100644
--- a/source/blender/blenkernel/intern/cryptomatte.cc
+++ b/source/blender/blenkernel/intern/cryptomatte.cc
@@ -311,7 +311,7 @@ static std::string cryptomatte_determine_name(const ViewLayer *view_layer,
 
 static uint32_t cryptomatte_determine_identifier(const blender::StringRef name)
 {
-  return BLI_hash_mm3(reinterpret_cast<const unsigned char *>(name.data()), name.size(), 0);
+  return BLI_has

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list