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:
-rw-r--r--intern/cycles/integrator/pass_accessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/integrator/pass_accessor.cpp b/intern/cycles/integrator/pass_accessor.cpp
index 4f76f1fa9df..4a0b1ed6ece 100644
--- a/intern/cycles/integrator/pass_accessor.cpp
+++ b/intern/cycles/integrator/pass_accessor.cpp
@@ -96,7 +96,7 @@ static void pad_pixels(const BufferParams &buffer_params,
return;
}
- const size_t size = buffer_params.width * buffer_params.height;
+ const size_t size = static_cast<size_t>(buffer_params.width) * buffer_params.height;
if (destination.pixels) {
float *pixel = destination.pixels;