diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-21 08:45:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-21 08:45:23 +0300 |
commit | 6c6551c398e9b2ebee7a0297cc4998d6640218da (patch) | |
tree | cd33e6eb84a5e7c54ac4a94e3f50c351714c195b /source/blender/blenlib | |
parent | a43c7538b802c64ae2443fd8e355756948716e8b (diff) |
Cleanup: conversion warning
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_color.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |