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

Unified Diff: tools/battor_agent/battor_connection_impl_unittest.cc

Issue 1650843002: Fix new -Wconstant-conversion versions after clang r259271 (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 | « rlz/lib/machine_id_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_connection_impl_unittest.cc
diff --git a/tools/battor_agent/battor_connection_impl_unittest.cc b/tools/battor_agent/battor_connection_impl_unittest.cc
index fffed6ab062291d4226f31e5e5bd828a93d87bfb..a1b8540fe9ab81bda895a7f78186d8917005edfe 100644
--- a/tools/battor_agent/battor_connection_impl_unittest.cc
+++ b/tools/battor_agent/battor_connection_impl_unittest.cc
@@ -198,7 +198,7 @@ TEST_F(BattOrConnectionImplTest, ReadMessageInvalidType) {
const char data[] = {
BATTOR_CONTROL_BYTE_START,
- UINT8_MAX,
+ static_cast<char>(UINT8_MAX),
BATTOR_CONTROL_BYTE_ESCAPE,
BATTOR_CONTROL_MESSAGE_TYPE_RESET,
0x04,
« no previous file with comments | « rlz/lib/machine_id_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698