Removes more warnings

This commit is contained in:
Vitor Pamplona
2026-05-12 22:05:38 -04:00
parent c51c5f665b
commit 5c39e3c85b
3 changed files with 4 additions and 4 deletions
@@ -570,7 +570,7 @@ class TlsClient(
val edExt = ticket.extensions.firstOrNull { it.type == TlsConstants.EXT_EARLY_DATA }
val maxEarly =
if (edExt != null && edExt.data.size >= 4) {
QuicReader(edExt.data).readUint32().toLong() and 0xFFFFFFFFL
QuicReader(edExt.data).readUint32() and 0xFFFFFFFFL
} else {
0L
}
@@ -236,8 +236,8 @@ data class TlsNewSessionTicket(
* header has already been consumed by the caller's framing loop).
*/
fun parseNewSessionTicketBody(r: QuicReader): TlsNewSessionTicket {
val lifetime = r.readUint32().toLong() and 0xFFFFFFFFL
val ageAdd = r.readUint32().toLong() and 0xFFFFFFFFL
val lifetime = r.readUint32() and 0xFFFFFFFFL
val ageAdd = r.readUint32() and 0xFFFFFFFFL
val nonce = r.readTlsOpaque1()
val ticket = r.readTlsOpaque2()
val extensions = TlsExtension.decodeList(r)