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

Unified Diff: tools/battor_agent/battor_agent.cc

Issue 1577983004: Avoid VS 2015 truncation warning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vs2015_package
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_agent.cc
diff --git a/tools/battor_agent/battor_agent.cc b/tools/battor_agent/battor_agent.cc
index c17dd5572ed2774ebf53d11f988ec22bafa23d5e..bab5eeeb987782e952195be5b6ef8ccd1ffacd7a 100644
--- a/tools/battor_agent/battor_agent.cc
+++ b/tools/battor_agent/battor_agent.cc
@@ -74,7 +74,7 @@ bool ParseSampleFrame(BattOrMessageType type,
// The remaining bytes in the frame contain an array of raw samples.
// Therefore, the number of samples in the frame should correspond to number
// of total bytes remaining in the frame.
- uint8_t samples_in_frame =
+ size_t samples_in_frame =
(msg.size() - sizeof(BattOrFrameHeader)) / sizeof(RawBattOrSample);
if (samples_in_frame != frame_header->length)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698