[Bf-blender-cvs] [0ed254574fc] master: macOS: Fix build error in hash functions

Ankit Meel noreply at git.blender.org
Mon Dec 6 21:09:03 CET 2021


Commit: 0ed254574fc7d138e56affe4c14b72ad67b65afe
Author: Ankit Meel
Date:   Tue Dec 7 01:38:14 2021 +0530
Branches: master
https://developer.blender.org/rB0ed254574fc7d138e56affe4c14b72ad67b65afe

macOS: Fix build error in hash functions

Remove unneeded recent static_cast attempt.

Reviewed By: HooglyBoogly
Differential Revision: https://developer.blender.org/D13492

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

M	source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
index 44541362c78..95633d14270 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
@@ -85,7 +85,7 @@ class EdgeVerticesFieldInput final : public GeometryFieldInput {
 
   uint64_t hash() const override
   {
-    return get_default_hash_2(static_cast<int64_t>(vertex_), 9872922352);
+    return get_default_hash_2(vertex_, 9872922352ULL);
   }
 
   bool is_equal_to(const fn::FieldNode &other) const override
@@ -147,7 +147,7 @@ class EdgePositionFieldInput final : public GeometryFieldInput {
 
   uint64_t hash() const override
   {
-    return get_default_hash_2(vertex_, 2359867235);
+    return get_default_hash_2(vertex_, 2359867235ULL);
   }
 
   bool is_equal_to(const fn::FieldNode &other) const override



More information about the Bf-blender-cvs mailing list