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

Unified Diff: media/cast/logging/log_serializer.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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: media/cast/logging/log_serializer.cc
diff --git a/media/cast/logging/log_serializer.cc b/media/cast/logging/log_serializer.cc
index c5cb252d781a3bc6bee05f58c4350335e948818c..732be1721ec1c9c81c354d522aa1beb6d4ef3664 100644
--- a/media/cast/logging/log_serializer.cc
+++ b/media/cast/logging/log_serializer.cc
@@ -47,7 +47,7 @@ bool DoSerializeEvents(const LogMetadata& metadata,
int proto_size = metadata.ByteSize();
DCHECK(proto_size <= kMaxSerializedProtoBytes);
- if (!writer.WriteU16(static_cast<uint16>(proto_size)))
+ if (!writer.WriteU16(static_cast<uint16_t>(proto_size)))
return false;
if (!metadata.SerializeToArray(writer.ptr(), writer.remaining()))
return false;
@@ -73,7 +73,7 @@ bool DoSerializeEvents(const LogMetadata& metadata,
DCHECK(proto_size <= kMaxSerializedProtoBytes);
// Write size of the proto, then write the proto.
- if (!writer.WriteU16(static_cast<uint16>(proto_size)))
+ if (!writer.WriteU16(static_cast<uint16_t>(proto_size)))
return false;
if (!frame_event.SerializeToArray(writer.ptr(), writer.remaining()))
return false;
@@ -97,7 +97,7 @@ bool DoSerializeEvents(const LogMetadata& metadata,
DCHECK(proto_size <= kMaxSerializedProtoBytes);
// Write size of the proto, then write the proto.
- if (!writer.WriteU16(static_cast<uint16>(proto_size)))
+ if (!writer.WriteU16(static_cast<uint16_t>(proto_size)))
return false;
if (!packet_event.SerializeToArray(writer.ptr(), writer.remaining()))
return false;
@@ -124,9 +124,9 @@ bool Compress(char* uncompressed_buffer,
Z_DEFAULT_STRATEGY);
DCHECK_EQ(Z_OK, result);
- stream.next_in = reinterpret_cast<uint8*>(uncompressed_buffer);
+ stream.next_in = reinterpret_cast<uint8_t*>(uncompressed_buffer);
stream.avail_in = uncompressed_bytes;
- stream.next_out = reinterpret_cast<uint8*>(output);
+ stream.next_out = reinterpret_cast<uint8_t*>(output);
stream.avail_out = max_output_bytes;
// Do a one-shot compression. This will return Z_STREAM_END only if |output|

Powered by Google App Engine
This is Rietveld 408576698