Skip to content

Commit 88527a3

Browse files
committed
word32 -> sword32
1 parent 845e2f7 commit 88527a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/quic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static word32 add_rec_header(byte* output, word32 length, byte type)
188188
return RECORD_HEADER_SZ;
189189
}
190190

191-
static word32 quic_record_transfer(QuicRecord* qr, byte* buf, word32 sz)
191+
static sword32 quic_record_transfer(QuicRecord* qr, byte* buf, word32 sz)
192192
{
193193
word32 len = qr->end - qr->start;
194194
word32 offset = 0;
@@ -224,7 +224,7 @@ static word32 quic_record_transfer(QuicRecord* qr, byte* buf, word32 sz)
224224
qr->start += len;
225225
qr->rec_hdr_remain -= len;
226226
}
227-
return len + offset;
227+
return (sword32)(len + offset);
228228
}
229229

230230

@@ -772,7 +772,7 @@ int wolfSSL_provide_quic_data(WOLFSSL* ssl, WOLFSSL_ENCRYPTION_LEVEL level,
772772
/* Called internally when SSL wants a certain amount of input. */
773773
int wolfSSL_quic_receive(WOLFSSL* ssl, byte* buf, word32 sz)
774774
{
775-
word32 n = 0;
775+
sword32 n = 0;
776776
int transferred = 0;
777777

778778
WOLFSSL_ENTER("wolfSSL_quic_receive");
@@ -802,7 +802,7 @@ int wolfSSL_quic_receive(WOLFSSL* ssl, byte* buf, word32 sz)
802802
ssl->error = transferred = WANT_READ;
803803
goto cleanup;
804804
}
805-
sz -= n;
805+
sz -= (word32)n;
806806
buf += n;
807807
transferred += (int)n;
808808
}

0 commit comments

Comments
 (0)