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:
authorKen Hughes <khughes@pacific.edu>2006-04-02 18:22:19 +0400
committerKen Hughes <khughes@pacific.edu>2006-04-02 18:22:19 +0400
commit8f38a916024531430661a58233a95cfcb981417b (patch)
tree5e688257c39bf67b597c546a479ff2be6b5a08ae
parent828cab295eac2b13dbc361f1cb87608924ccad47 (diff)
A calculation was using an integer 100000000000, which was being truncated:
source/blender/src/writeimage.c: In function `save_rendered_image_cb_real': source/blender/src/writeimage.c:129: warning: integer constant is too large for "long" type Since the calculation is on a float anyway, changed constant to a float. Ken
-rw-r--r--source/blender/src/writeimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c
index 6239f980335..a1578bd0dec 100644
--- a/source/blender/src/writeimage.c
+++ b/source/blender/src/writeimage.c
@@ -126,7 +126,7 @@ static void save_rendered_image_cb_real(char *name, int zbuf)
end = ibuf->x * ibuf->y;
for(pixel = 0; pixel < end; pixel++, pixf+=4, pixc+=4) {
- pixf[0] = pixf[1] = pixf[2] = pixf[3] = 1-rres.rectz[pixel]/100000000000;
+ pixf[0] = pixf[1] = pixf[2] = pixf[3] = 1-rres.rectz[pixel]/100000000000.0;
pixc[0] = pixc[1] = pixc[2] = pixc[3] = FTOCHAR(rres.rectz[pixel]);
}
ibuf->zbuf_float= rres.rectz;