commit | 8994abbe699bb05fa70cff101becc925db6b2c26 | [log] [tgz] |
---|---|---|
author | synergy dev <synergye@codefi.re> | Thu Dec 05 00:24:37 2013 -0800 |
committer | synergy dev <synergye@codefi.re> | Sat Jan 18 17:34:37 2014 -0500 |
tree | c7300752cf27bd6c1c377397c03ec9b9ca3b5ed7 | |
parent | 9ae073798bfe5bfc63b5f807023672405c26a792 [diff] [blame] |
cpu_ref: fix c++11 narrowing violations the best fix for these is to use static casting Change-Id: I00344826a33e5387638ae5edf4c6b85c92f43769
diff --git a/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp b/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp index 4e38459..22f0962 100644 --- a/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp +++ b/cpu_ref/rsCpuIntrinsicYuvToRGB.cpp
@@ -92,7 +92,8 @@ p.z = 255; } - return (uchar4){p.x, p.y, p.z, p.w}; + return (uchar4){static_cast<uchar>(p.x), static_cast<uchar>(p.y), + static_cast<uchar>(p.z), static_cast<uchar>(p.w)}; }