summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-10-27 11:46:53 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-10-27 11:46:53 +0000
commit5ed9dbd895fa15fa3bb03e8751e834cfa33aa16b (patch)
tree5ad7c37524519180fc193b9eb476079a7e6a2a0f /src/color-profile.cpp
parentFix build error due to bad internal handling of deprecated GTK+ symbols in gt... (diff)
downloadinkscape-5ed9dbd895fa15fa3bb03e8751e834cfa33aa16b.tar.gz
inkscape-5ed9dbd895fa15fa3bb03e8751e834cfa33aa16b.zip
Fix C++11 narrowing conversion errors
(bzr r11834)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index a1e9dd0f1..981d527f0 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -639,9 +639,9 @@ bool ColorProfile::GamutCheck(SPColor color)
cmsUInt8Number outofgamut = 0;
guchar check_color[4] = {
- SP_RGBA32_R_U(val),
- SP_RGBA32_G_U(val),
- SP_RGBA32_B_U(val),
+ static_cast<guchar>(SP_RGBA32_R_U(val)),
+ static_cast<guchar>(SP_RGBA32_G_U(val)),
+ static_cast<guchar>(SP_RGBA32_B_U(val)),
255};
cmsDoTransform(ColorProfile::getTransfGamutCheck(), &check_color, &outofgamut, 1);