Skip to content

Commit

Permalink
serial: Fix warning about comparing a signed and unsigned int
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Nechita <[email protected]>
  • Loading branch information
dNechita committed Mar 4, 2021
1 parent bcb3864 commit 56f7db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static ssize_t serial_write_data(struct iio_context_pdata *pdata,
if (ret < 0) {
IIO_ERROR("sp_blocking_write returned %i\n", (int) ret);
return ret;
} else if (ret < len) {
} else if ((size_t) ret < len) {
IIO_ERROR("sp_blocking_write has timedout\n");
return -ETIMEDOUT;
}
Expand Down

0 comments on commit 56f7db7

Please sign in to comment.