From 372dff8d1dc7e24d4b2cd37de245588ecfce8bfa Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Mon, 21 Sep 2015 18:20:30 -0300 Subject: Silence double promotion error/warnings --- intern/cycles/util/util_distort.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/util/util_distort.h b/intern/cycles/util/util_distort.h index 6f8d4f259ff..174b918677c 100644 --- a/intern/cycles/util/util_distort.h +++ b/intern/cycles/util/util_distort.h @@ -65,8 +65,8 @@ ccl_device void util_invert_polynomial_distortion(const float2 image, image.x, image.y, &normalized_x, &normalized_y); - result->x = normalized_x * focal_length + principal_point.x; - result->y = normalized_y * focal_length + principal_point.y; + result->x = normalized_x * (double)focal_length + (double)principal_point.x; + result->y = normalized_y * (double)focal_length + (double)principal_point.y; #else *result = image; #endif -- cgit v1.2.3