Skip to content

Commit

Permalink
[Update PR] Add int32_t to cmd_result_code
Browse files Browse the repository at this point in the history
  • Loading branch information
greensky00 committed Jun 21, 2024
1 parent 3b2d3b3 commit 3f71551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/libnuraft/async.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ limitations under the License.

namespace nuraft {

enum cmd_result_code {
enum cmd_result_code : int32_t {
OK = 0,
CANCELLED = -1,
TIMEOUT = -2,
Expand Down
2 changes: 1 addition & 1 deletion src/asio_service.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ class rpc_session
try {
ptr<buffer> resp_ctx = resp->get_ctx();
int32 resp_ctx_size = (resp_ctx) ? resp_ctx->size() : 0;
int32 result_code_size = sizeof(cmd_result_code);
int32 result_code_size = sizeof(int32_t);

uint32_t flags = 0x0;
size_t resp_meta_size = 0;
Expand Down

0 comments on commit 3f71551

Please sign in to comment.