diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-03-01 18:28:55 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-03-01 18:33:31 +0300 |
commit | 5da418d4e6a199ae5ebe0cfd5b088369fb2d755b (patch) | |
tree | 2e9a6206b37e88bc3271c54970493da862a6235a /intern/cycles/bvh | |
parent | f4a988329438ccaae5fdd9eb861db065d5f518b2 (diff) |
Fix Cycles build error without Embree on Windows
Don't use ssize_t, it's not available in MSVC.
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh_binning.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/bvh/bvh_binning.cpp b/intern/cycles/bvh/bvh_binning.cpp index d51143c578e..1cc38275d11 100644 --- a/intern/cycles/bvh/bvh_binning.cpp +++ b/intern/cycles/bvh/bvh_binning.cpp @@ -107,9 +107,9 @@ BVHObjectBinning::BVHObjectBinning(const BVHRange &job, /* map geometry to bins, unrolled once */ { - ssize_t i; + int64_t i; - for (i = 0; i < ssize_t(size()) - 1; i += 2) { + for (i = 0; i < int64_t(size()) - 1; i += 2) { prefetch_L2(&prims[start() + i + 8]); /* map even and odd primitive to bin */ @@ -146,7 +146,7 @@ BVHObjectBinning::BVHObjectBinning(const BVHRange &job, } /* for uneven number of primitives */ - if (i < ssize_t(size())) { + if (i < int64_t(size())) { /* map primitive to bin */ const BVHReference &prim0 = prims[start() + i]; BoundBox bounds0 = get_prim_bounds(prim0); @@ -237,7 +237,7 @@ void BVHObjectBinning::split(BVHReference *prims, BoundBox lcent_bounds = BoundBox::empty; BoundBox rcent_bounds = BoundBox::empty; - ssize_t l = 0, r = N - 1; + int64_t l = 0, r = N - 1; while (l <= r) { prefetch_L2(&prims[start() + l + 8]); |