aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/slice/percent_encode_fuzzer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/slice/percent_encode_fuzzer.cc')
-rw-r--r--test/core/slice/percent_encode_fuzzer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/slice/percent_encode_fuzzer.cc b/test/core/slice/percent_encode_fuzzer.cc
index 201ae2790e..1e4e95d97e 100644
--- a/test/core/slice/percent_encode_fuzzer.cc
+++ b/test/core/slice/percent_encode_fuzzer.cc
@@ -34,7 +34,7 @@ static void test(const uint8_t* data, size_t size, const uint8_t* dict) {
struct grpc_memory_counters counters;
grpc_init();
grpc_memory_counters_init();
- grpc_slice input = grpc_slice_from_copied_buffer((const char*)data, size);
+ grpc_slice input = grpc_slice_from_copied_buffer(reinterpret_cast<const char*>(data), size);
grpc_slice output = grpc_percent_encode_slice(input, dict);
grpc_slice decoded_output;
// encoder must always produce decodable output