Skip to content

Commit 76f669b

Browse files
committed
wolfcrypt/src/asn.c: fix -Wconversion in GetLength_ex() added in fea7a89.
1 parent 3cc7bbe commit 76f669b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ int GetLength_ex(const byte* input, word32* inOutIdx, int* len, word32 maxIdx,
23062306
}
23072307

23082308
/* Check the number of bytes required are available. */
2309-
if ((idx + bytes) > maxIdx) {
2309+
if ((idx + (word32)bytes) > maxIdx) {
23102310
WOLFSSL_MSG("GetLength - bad long length");
23112311
return BUFFER_E;
23122312
}

0 commit comments

Comments
 (0)