diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-28 09:48:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-28 09:48:45 +0300 |
commit | 8ac69ff9dcfc6aba8b5de8d53658612c8411b43b (patch) | |
tree | e3297adfe4494190ddb707e62161cdc9a366b737 /source/blender/blenlib/intern/BLI_kdopbvh.c | |
parent | 1d409defbf3fd40b9291c4945975cc36e355ddc0 (diff) |
Cleanup: use uint type in BLI
Diffstat (limited to 'source/blender/blenlib/intern/BLI_kdopbvh.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_kdopbvh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/BLI_kdopbvh.c b/source/blender/blenlib/intern/BLI_kdopbvh.c index e5ca53a0193..bd16bc1a9c6 100644 --- a/source/blender/blenlib/intern/BLI_kdopbvh.c +++ b/source/blender/blenlib/intern/BLI_kdopbvh.c @@ -1294,7 +1294,7 @@ static void bvhtree_overlap_task_cb(void *userdata, const int j) } BVHTreeOverlap *BLI_bvhtree_overlap( - const BVHTree *tree1, const BVHTree *tree2, unsigned int *r_overlap_tot, + const BVHTree *tree1, const BVHTree *tree2, uint *r_overlap_tot, /* optional callback to test the overlap before adding (must be thread-safe!) */ BVHTree_OverlapCallback callback, void *userdata) { @@ -1351,13 +1351,13 @@ BVHTreeOverlap *BLI_bvhtree_overlap( to = overlap = MEM_mallocN(sizeof(BVHTreeOverlap) * total, "BVHTreeOverlap"); for (j = 0; j < thread_num; j++) { - unsigned int count = (unsigned int)BLI_stack_count(data[j].overlap); + uint count = (uint)BLI_stack_count(data[j].overlap); BLI_stack_pop_n(data[j].overlap, to, count); BLI_stack_free(data[j].overlap); to += count; } - *r_overlap_tot = (unsigned int)total; + *r_overlap_tot = (uint)total; return overlap; } |