| 1 |
From f55bf225da0eafeeebffd507dcb57c625933d105 Mon Sep 17 00:00:00 2001 |
| 2 |
From: alto-ruby <[email protected]> |
| 3 |
Date: Tue, 17 Sep 2024 18:09:05 -0700 |
| 4 |
Subject: [PATCH] [Ruby] fix incompatible pointer type of |
| 5 |
grpc_compression_algorithm_name (#37741) |
| 6 |
|
| 7 |
fixes #37731 |
| 8 |
|
| 9 |
Closes #37741 |
| 10 |
|
| 11 |
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37741 from alto-ruby:fix-incompatible-pointer-type-in-grpc_compression_algorithm_name 18a89be44d54e8c8bd614f1cee626d1db598a45a |
| 12 |
PiperOrigin-RevId: 675779382 |
| 13 |
--- |
| 14 |
src/ruby/ext/grpc/rb_compression_options.c | 2 +- |
| 15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 |
|
| 17 |
Origin: upstream, https://github.com/grpc/grpc/pull/37741 |
| 18 |
--- a/src/ruby/ext/grpc/rb_compression_options.c |
| 19 |
+++ b/src/ruby/ext/grpc/rb_compression_options.c |
| 20 |
@@ -297,7 +297,7 @@ |
| 21 |
* Fails if the enum value is invalid. */ |
| 22 |
VALUE grpc_rb_compression_options_algorithm_value_to_name_internal( |
| 23 |
grpc_compression_algorithm internal_value) { |
| 24 |
- char* algorithm_name = NULL; |
| 25 |
+ const char* algorithm_name = NULL; |
| 26 |
|
| 27 |
if (!grpc_compression_algorithm_name(internal_value, &algorithm_name)) { |
| 28 |
rb_raise(rb_eArgError, "Failed to convert algorithm value to name"); |