From 6e9f5b6232afa75750573a44d72a87fa32cda943 Mon Sep 17 00:00:00 2001 From: t-horikawa Date: Wed, 6 Dec 2023 17:11:07 +0900 Subject: [PATCH] correct integer type used in endpoint/stream/stream_response --- src/tateyama/endpoint/stream/stream_response.cpp | 2 +- src/tateyama/endpoint/stream/stream_response.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tateyama/endpoint/stream/stream_response.cpp b/src/tateyama/endpoint/stream/stream_response.cpp index aadc9d71..513f7d5e 100644 --- a/src/tateyama/endpoint/stream/stream_response.cpp +++ b/src/tateyama/endpoint/stream/stream_response.cpp @@ -29,7 +29,7 @@ namespace tateyama::common::stream { class stream_request; // class stream_response -stream_response::stream_response(std::shared_ptr stream, unsigned char index) +stream_response::stream_response(std::shared_ptr stream, std::uint16_t index) : session_socket_(std::move(stream)), index_(index) { } diff --git a/src/tateyama/endpoint/stream/stream_response.h b/src/tateyama/endpoint/stream/stream_response.h index ee9cb7a5..ca206845 100644 --- a/src/tateyama/endpoint/stream/stream_response.h +++ b/src/tateyama/endpoint/stream/stream_response.h @@ -79,7 +79,7 @@ class stream_response : public tateyama::api::server::response { friend stream_data_channel; public: - stream_response(std::shared_ptr stream, unsigned char index); + stream_response(std::shared_ptr stream, std::uint16_t index); stream_response() = delete; tateyama::status body(std::string_view body) override; @@ -93,7 +93,7 @@ class stream_response : public tateyama::api::server::response { } private: std::shared_ptr session_socket_; - unsigned char index_; + std::uint16_t index_; std::string message_{};