Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Nov 2, 2017
1 parent 72231e0 commit a20be88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ lwmqtt_err_t lwmqtt_decode_publish(uint8_t *buf, size_t buf_len, bool *dup, uint
}

// check buffer capacity
if (buf_end - buf_ptr < rem_len) {
if ((uint32_t)(buf_end - buf_ptr) < rem_len) {
return LWMQTT_BUFFER_TOO_SHORT;
}

Expand Down

0 comments on commit a20be88

Please sign in to comment.