[Bf-blender-cvs] [6c6551c398e] master: Cleanup: conversion warning

Campbell Barton noreply at git.blender.org
Fri May 21 07:46:02 CEST 2021


Commit: 6c6551c398e9b2ebee7a0297cc4998d6640218da
Author: Campbell Barton
Date:   Fri May 21 15:45:23 2021 +1000
Branches: master
https://developer.blender.org/rB6c6551c398e9b2ebee7a0297cc4998d6640218da

Cleanup: conversion warning

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

M	source/blender/blenlib/intern/math_color.c

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

diff --git a/source/blender/blenlib/intern/math_color.c b/source/blender/blenlib/intern/math_color.c
index d5c63573c7a..abcb3139dc7 100644
--- a/source/blender/blenlib/intern/math_color.c
+++ b/source/blender/blenlib/intern/math_color.c
@@ -765,7 +765,7 @@ static void wavelength_to_xyz(float xyz[3], float lambda_nm)
     xyz[2] = 0.0f;
   }
   else {
-    ii -= i;
+    ii -= (float)i;
     const float *c = cie_colour_match[i];
     xyz[0] = c[0] + ii * (c[3] - c[0]);
     xyz[1] = c[1] + ii * (c[4] - c[1]);



More information about the Bf-blender-cvs mailing list