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

Unified Diff: ppapi/shared_impl/flash_clipboard_format_registry.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
« ppapi/proxy/url_loader_resource.cc ('K') | « ppapi/shared_impl/array_writer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/flash_clipboard_format_registry.cc
diff --git a/ppapi/shared_impl/flash_clipboard_format_registry.cc b/ppapi/shared_impl/flash_clipboard_format_registry.cc
index 89a051e2d3d9c5d5c6f833b38c9efedec531d569..e314417d4774e8959847e9dec65df6597f220aea 100644
--- a/ppapi/shared_impl/flash_clipboard_format_registry.cc
+++ b/ppapi/shared_impl/flash_clipboard_format_registry.cc
@@ -43,7 +43,8 @@ uint32_t FlashClipboardFormatRegistry::RegisterFormat(
custom_formats_.size() > kMaxNumFormats) {
return PP_FLASH_CLIPBOARD_FORMAT_INVALID;
}
- uint32_t key = kFirstCustomFormat + custom_formats_.size();
+ uint32_t key = kFirstCustomFormat +
+ static_cast<uint32_t>(custom_formats_.size());
custom_formats_[key] = format_name;
return key;
}
« ppapi/proxy/url_loader_resource.cc ('K') | « ppapi/shared_impl/array_writer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698