[Ruby] fix incompatible pointer type of grpc_compression_algorithm_name (#37741)

fixes #37731

Closes #37741

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37741 from alto-ruby:fix-incompatible-pointer-type-in-grpc_compression_algorithm_name 18a89be44d
PiperOrigin-RevId: 675779382
pull/37747/head
alto-ruby 2 months ago committed by Copybara-Service
parent bdf52dd4ad
commit f55bf225da
  1. 2
      src/ruby/ext/grpc/rb_compression_options.c

@ -296,7 +296,7 @@ VALUE grpc_rb_compression_options_level_value_to_name_internal(
* Fails if the enum value is invalid. */ * Fails if the enum value is invalid. */
VALUE grpc_rb_compression_options_algorithm_value_to_name_internal( VALUE grpc_rb_compression_options_algorithm_value_to_name_internal(
grpc_compression_algorithm internal_value) { grpc_compression_algorithm internal_value) {
char* algorithm_name = NULL; const char* algorithm_name = NULL;
if (!grpc_compression_algorithm_name(internal_value, &algorithm_name)) { if (!grpc_compression_algorithm_name(internal_value, &algorithm_name)) {
rb_raise(rb_eArgError, "Failed to convert algorithm value to name"); rb_raise(rb_eArgError, "Failed to convert algorithm value to name");

Loading…
Cancel
Save