aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/codegen
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2018-02-09 09:16:55 -0800
committerGravatar Noah Eisen <ncteisen@google.com>2018-02-09 09:16:55 -0800
commitbe82e64b3debcdb1d9ec6a149fc85af0d46bfb7e (patch)
treecc5e1234073eb250a2c319b5a4db2919fce060ea /test/cpp/codegen
parent194436342137924b4fb7429bede037a4b5ec7edb (diff)
Autofix c casts to c++ casts
Diffstat (limited to 'test/cpp/codegen')
-rw-r--r--test/cpp/codegen/proto_utils_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/codegen/proto_utils_test.cc b/test/cpp/codegen/proto_utils_test.cc
index cc355bb24a..d714e59b5d 100644
--- a/test/cpp/codegen/proto_utils_test.cc
+++ b/test/cpp/codegen/proto_utils_test.cc
@@ -103,7 +103,7 @@ void BufferWriterTest(int block_size, int total_size, int backup_size) {
ASSERT_GT(backup_size, 0);
}
for (int i = 0; i < write_size; i++) {
- ((uint8_t*)data)[i] = written_size % 128;
+ (static_cast<uint8_t*>(data))[i] = written_size % 128;
written_size++;
}
if (should_backup) {
@@ -130,7 +130,7 @@ void BufferWriterTest(int block_size, int total_size, int backup_size) {
}
TEST(WriterTest, TinyBlockTinyBackup) {
- for (int i = 2; i < (int)GRPC_SLICE_INLINED_SIZE; i++) {
+ for (int i = 2; i < static_cast<int>GRPC_SLICE_INLINED_SIZE; i++) {
BufferWriterTest(i, 256, 1);
}
}