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

Unified Diff: ppapi/proxy/flash_clipboard_resource.cc

Issue 915403003: Enable size_t to int truncation warnings in PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: ppapi/proxy/flash_clipboard_resource.cc
diff --git a/ppapi/proxy/flash_clipboard_resource.cc b/ppapi/proxy/flash_clipboard_resource.cc
index 2b665bfa0593ca85f706ab10e9ce10c04c2ce7db..2630649d2417cbed8efe13ad157f79c245037408 100644
--- a/ppapi/proxy/flash_clipboard_resource.cc
+++ b/ppapi/proxy/flash_clipboard_resource.cc
@@ -53,7 +53,7 @@ PP_Var ClipboardStringToPPVar(int32_t format,
} else {
// All other formats are expected to be array buffers.
return PpapiGlobals::Get()->GetVarTracker()->MakeArrayBufferPPVar(
- string.size(), string.data());
+ static_cast<uint32_t>(string.size()), string.data());
}
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698