Fix CI failure after 8484767

libscp_v0.c:228:52: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
  228 |         if ((trans->in_s->end - trans->in_s->data) < trans->header_size)
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Koichiro IWAO 2022-12-09 23:21:26 +09:00
parent b442abe467
commit 2f1196bdc4

View File

@ -225,7 +225,7 @@ scp_v0c_reply_available(struct trans *trans)
if (trans != NULL && trans->status == TRANS_STATUS_UP)
{
/* Have we read enough data from the stream? */
if ((trans->in_s->end - trans->in_s->data) < trans->header_size)
if ((unsigned int)(trans->in_s->end - trans->in_s->data) < trans->header_size)
{
result = 0;
}