Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1186)

Unified Diff: ppapi/examples/compositor/compositor.cc

Issue 335383003: Possible narrowing conversion build fix for Compositor API example. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/compositor/compositor.cc
diff --git a/ppapi/examples/compositor/compositor.cc b/ppapi/examples/compositor/compositor.cc
index d437bc84b77aa894aafa3d744986be980d43a7fc..360bfba9a08ee48343dd3037803419ffb78f9539 100644
--- a/ppapi/examples/compositor/compositor.cc
+++ b/ppapi/examples/compositor/compositor.cc
@@ -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,
dmichael (off chromium) 2014/06/17 16:16:00 factor_sin is a float, and fabs is supposed to hav
0.0f, 0.0f, 1.0f, 0.0f,
x, y, 0.0f, 1.0f,
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698