commit | aed731048df40956a829ad13843aa67edaa91f3f | [log] [tgz] |
---|---|---|
author | Florian Mayer <fmayer@google.com> | Fri Sep 13 09:00:39 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Sep 13 09:00:39 2019 +0000 |
tree | b87ccf0be1cc8617b85662a6df2b450b6c1b1f79 | |
parent | 92aa285a91dde297c62ce659b86f1391dcac93c1 [diff] | |
parent | 498931477ecc81652e07dfb5272a4e788fb3499b [diff] |
Merge "Fix implicit conversion."
diff --git a/src/profiling/memory/wire_protocol.cc b/src/profiling/memory/wire_protocol.cc index 6209fc8..6d561c3 100644 --- a/src/profiling/memory/wire_protocol.cc +++ b/src/profiling/memory/wire_protocol.cc
@@ -87,7 +87,7 @@ errno = EAGAIN; return false; } - buf = shmem->BeginWrite(lock, total_size); + buf = shmem->BeginWrite(lock, static_cast<size_t>(total_size)); } if (!buf) { PERFETTO_DLOG("Buffer overflow.");