1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

fix compiler warning: comparison between signed and unsigned

This commit is contained in:
Yang Tse 2008-07-21 03:59:23 +00:00
parent a20d55fb64
commit 775d9e0615

View File

@ -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 {