[Bf-blender-cvs] [fa99323f092] master: Cleanup: quiet compiler warnings
Campbell Barton
noreply at git.blender.org
Thu Jun 16 04:30:25 CEST 2022
Commit: fa99323f09268cbfe41376b312ea826c246da717
Author: Campbell Barton
Date: Thu Jun 16 12:28:42 2022 +1000
Branches: master
https://developer.blender.org/rBfa99323f09268cbfe41376b312ea826c246da717
Cleanup: quiet compiler warnings
===================================================================
M source/blender/geometry/intern/uv_parametrizer.c
===================================================================
diff --git a/source/blender/geometry/intern/uv_parametrizer.c b/source/blender/geometry/intern/uv_parametrizer.c
index c0b9907ea81..46ebe6cfdce 100644
--- a/source/blender/geometry/intern/uv_parametrizer.c
+++ b/source/blender/geometry/intern/uv_parametrizer.c
@@ -3862,7 +3862,7 @@ ParamKey GEO_uv_find_pin_index(ParamHandle *handle, const int bmvertindex, const
return bmvertindex; /* No verts pinned. */
}
- GeoUVPinIndex *pinuvlist = BLI_ghash_lookup(handle->pin_hash, bmvertindex);
+ GeoUVPinIndex *pinuvlist = BLI_ghash_lookup(handle->pin_hash, POINTER_FROM_INT(bmvertindex));
if (!pinuvlist) {
return bmvertindex; /* Vert not pinned. */
}
@@ -3897,9 +3897,10 @@ void GEO_uv_prepare_pin_index(ParamHandle *handle, const int bmvertindex, const
handle->pin_hash = BLI_ghash_int_new("uv pin reindex");
}
- GeoUVPinIndex *pinuvlist = BLI_ghash_lookup(handle->pin_hash, bmvertindex);
+ GeoUVPinIndex *pinuvlist = BLI_ghash_lookup(handle->pin_hash, POINTER_FROM_INT(bmvertindex));
if (!pinuvlist) {
- BLI_ghash_insert(handle->pin_hash, bmvertindex, new_geo_uv_pinindex(handle, uv));
+ BLI_ghash_insert(
+ handle->pin_hash, POINTER_FROM_INT(bmvertindex), new_geo_uv_pinindex(handle, uv));
return;
}
More information about the Bf-blender-cvs
mailing list