diff --git a/transport/cql_protocol_extension.cc b/transport/cql_protocol_extension.cc index 5193541a93c0..8410d9987587 100644 --- a/transport/cql_protocol_extension.cc +++ b/transport/cql_protocol_extension.cc @@ -33,7 +33,7 @@ std::vector additional_options_for_proto_ext(cql_protocol_exte case cql_protocol_extension::LWT_ADD_METADATA_MARK: return {format("LWT_OPTIMIZATION_META_BIT_MASK={:d}", cql3::prepared_metadata::LWT_FLAG_MASK)}; case cql_protocol_extension::RATE_LIMIT_ERROR: - return {format("ERROR_CODE={:d}", exceptions::exception_code::RATE_LIMIT_ERROR)}; + return {format("ERROR_CODE={:d}", (int)exceptions::exception_code::RATE_LIMIT_ERROR)}; default: return {}; }