Possible narrowing conversion build fix for Compositor API example.

In the compositor API example gcc 4.9 reports a possible
type narrowing when using fabs call. To fix this use fabsf instead.

BUG=385988
R=dmichael

Review URL: https://codereview.chromium.org/335383003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278076 0039d316-1c4b-4281-b951-d872f2087c98
parent c8b48969
......@@ -309,8 +309,8 @@ void DemoInstance::Paint(int32_t result, int32_t frame) {
float x = frame % 800;
float y = 200 - 200 * factor_sin;
const float transform[16] = {
fabs(factor_sin) + 0.2f, 0.0f, 0.0f, 0.0f,
0.0f, fabs(factor_sin) + 0.2f, 0.0f, 0.0f,
fabsf(factor_sin) + 0.2f, 0.0f, 0.0f, 0.0f,
0.0f, fabsf(factor_sin) + 0.2f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
x, y, 0.0f, 1.0f,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment