diff options
author | Yang Tse <yangsita@gmail.com> | 2008-07-21 03:59:23 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-07-21 03:59:23 +0000 |
commit | 775d9e06152f4b46e568389ab7cdcee45ebe2a5c (patch) | |
tree | dfb9d6e9af6b9329e420a94d00e9cac0e15a0ff0 /lib/tftp.c | |
parent | a20d55fb644e4f14fb1a6471e5eaa80596a9d962 (diff) |
fix compiler warning: comparison between signed and unsigned
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 8ee947dfd..449a2b3d2 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -420,7 +420,7 @@ static CURLcode tftp_rx(tftp_state_data_t *state, tftp_event_t event) } /* Check if completed (That is, a less than full packet is received) */ - if(state->rbytes < sizeof(state->spacket)){ + if(state->rbytes < (ssize_t)sizeof(state->spacket)){ state->state = TFTP_STATE_FIN; } else { |