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

Unified Diff: extensions/browser/api/cast_channel/logger.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 years 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: extensions/browser/api/cast_channel/logger.cc
diff --git a/extensions/browser/api/cast_channel/logger.cc b/extensions/browser/api/cast_channel/logger.cc
index fe32182ac6872c43da8a22aa9017b9841cffc5a1..39077f40fc340f5a0f562c33a444c428506ea860 100644
--- a/extensions/browser/api/cast_channel/logger.cc
+++ b/extensions/browser/api/cast_channel/logger.cc
@@ -4,6 +4,8 @@
#include "extensions/browser/api/cast_channel/logger.h"
+#include <stdint.h>
+
#include <string>
#include <utility>
@@ -77,9 +79,9 @@ scoped_ptr<char[]> Compress(const std::string& input, size_t* length) {
size_t out_size = deflateBound(&stream, input.size());
scoped_ptr<char[]> out(new char[out_size]);
- stream.next_in = reinterpret_cast<uint8*>(const_cast<char*>(input.data()));
+ stream.next_in = reinterpret_cast<uint8_t*>(const_cast<char*>(input.data()));
stream.avail_in = input.size();
- stream.next_out = reinterpret_cast<uint8*>(out.get());
+ stream.next_out = reinterpret_cast<uint8_t*>(out.get());
stream.avail_out = out_size;
// Do a one-shot compression. This will return Z_STREAM_END only if |output|
« no previous file with comments | « extensions/browser/api/cast_channel/logger.h ('k') | extensions/browser/api/cast_channel/logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698