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

Unified Diff: tools/battor_agent/battor_sample_converter_unittest.cc

Issue 1648123002: Fix narrowing warning in battor_sample_converter_unittest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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_sample_converter_unittest.cc
diff --git a/tools/battor_agent/battor_sample_converter_unittest.cc b/tools/battor_agent/battor_sample_converter_unittest.cc
index f0b9935982c3cfe5508980177eb4f85674548ac6..01ad5e5cdb7246f05dbf4d2c1d3458b9ce135f40 100644
--- a/tools/battor_agent/battor_sample_converter_unittest.cc
+++ b/tools/battor_agent/battor_sample_converter_unittest.cc
@@ -25,7 +25,7 @@ TEST(BattOrSampleConverterTest, ToSampleSimple) {
// Create a calibration frame with a baseline voltage and current of zero.
std::vector<RawBattOrSample> calibration_frame;
- calibration_frame.push_back(RawBattOrSample{0.0, 0.0});
+ calibration_frame.push_back(RawBattOrSample{0, 0});
BattOrSampleConverter converter(eeprom, calibration_frame);
// Set both the voltage and current to their max values.
« 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