Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/tests/BLI_polyfill_2d_test.cc')
-rw-r--r--source/blender/blenlib/tests/BLI_polyfill_2d_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc b/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc
index 69c60c5bdb9..95fd664217f 100644
--- a/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc
+++ b/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc
@@ -94,10 +94,10 @@ static void test_polyfill_topology(const float /*poly*/[][2],
const uint v2 = tris[i][(j + 1) % 3];
void **p = BLI_edgehash_lookup_p(edgehash, v1, v2);
if (p) {
- *p = (void *)((intptr_t)*p + (intptr_t)1);
+ *p = (void *)(intptr_t(*p) + intptr_t(1));
}
else {
- BLI_edgehash_insert(edgehash, v1, v2, (void *)(intptr_t)1);
+ BLI_edgehash_insert(edgehash, v1, v2, (void *)intptr_t(1));
}
}
}