[Bf-blender-cvs] [7f9a4c0] master: Bake-API: cleanup - missing (size_t) promotion

Dalai Felinto noreply at git.blender.org
Fri Aug 1 01:09:33 CEST 2014


Commit: 7f9a4c0c421a0daddcb6984a99187dfabcbbcf2e
Author: Dalai Felinto
Date:   Thu Jul 31 20:08:05 2014 -0300
Branches: master
https://developer.blender.org/rB7f9a4c0c421a0daddcb6984a99187dfabcbbcf2e

Bake-API: cleanup - missing (size_t) promotion

===================================================================

M	source/blender/editors/object/object_bake_api.c

===================================================================

diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 57b7bab..66236bf 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -178,7 +178,7 @@ static bool write_internal_bake_pixels(
 	void *lock;
 	bool is_float;
 	char *mask_buffer = NULL;
-	const size_t num_pixels = width * height;
+	const size_t num_pixels = (size_t)width * (size_t)height;
 
 	ibuf = BKE_image_acquire_ibuf(image, NULL, &lock);




More information about the Bf-blender-cvs mailing list