| 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)
|
|
|