Skip to content

Commit

Permalink
fix: clear windows conversion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Dec 18, 2023
1 parent f5972b0 commit 97a4f8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/protocol/codec/declarations.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
int8_t _z_decl_ext_keyexpr_encode(_z_wbuf_t *wbf, _z_keyexpr_t ke, _Bool has_next_ext) {
uint8_t header = _Z_MSG_EXT_ENC_ZBUF | _Z_MSG_EXT_FLAG_M | 0x0f | (has_next_ext ? _Z_FLAG_Z_Z : 0);
_Z_RETURN_IF_ERR(_z_uint8_encode(wbf, header));
uint32_t kelen = _z_keyexpr_has_suffix(ke) ? strlen(ke._suffix) : 0;
uint32_t kelen = (uint32_t)(_z_keyexpr_has_suffix(ke) ? strlen(ke._suffix) : 0);
header = (_z_keyexpr_is_local(&ke) ? 2 : 0) | (kelen != 0 ? 1 : 0);
_Z_RETURN_IF_ERR(_z_zint_encode(wbf, 1 + kelen + _z_zint_len(ke._id)));
_Z_RETURN_IF_ERR(_z_uint8_encode(wbf, header));
Expand Down
4 changes: 2 additions & 2 deletions src/protocol/codec/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ int8_t _z_response_decode_extension(_z_msg_ext_t *extension, void *ctx) {
_z_n_msg_response_t *msg = (_z_n_msg_response_t *)ctx;
switch (_Z_EXT_FULL_ID(extension->_header)) {
case _Z_MSG_EXT_ENC_ZINT | 0x01: {
msg->_ext_qos._val = extension->_body._zint._val;
msg->_ext_qos._val = (uint8_t)extension->_body._zint._val;
break;
}
case _Z_MSG_EXT_ENC_ZBUF | 0x02: {
Expand Down Expand Up @@ -450,7 +450,7 @@ int8_t _z_declare_decode_extensions(_z_msg_ext_t *extension, void *ctx) {
_z_n_msg_declare_t *decl = (_z_n_msg_declare_t *)ctx;
switch (_Z_EXT_FULL_ID(extension->_header)) {
case _Z_MSG_EXT_ENC_ZINT | 0x01: {
decl->_ext_qos._val = extension->_body._zint._val;
decl->_ext_qos._val = (uint8_t)extension->_body._zint._val;
break;
}
case _Z_MSG_EXT_ENC_ZBUF | 0x02: {
Expand Down
2 changes: 1 addition & 1 deletion src/session/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int8_t _z_handle_network_message(_z_session_t *zn, _z_zenoh_message_t *msg, uint
case _Z_REQUEST_QUERY: {
#if Z_FEATURE_QUERYABLE == 1
_z_msg_query_t *query = &req._body._query;
ret = _z_trigger_queryables(zn, query, req._key, req._rid);
ret = _z_trigger_queryables(zn, query, req._key, (uint32_t)req._rid);
#else
_Z_DEBUG("_Z_REQUEST_QUERY dropped, queryables not supported\n");
#endif
Expand Down

0 comments on commit 97a4f8b

Please sign in to comment.