Skip to content

Commit 32f3f7d

Browse files
authored
Merge pull request #7111 from Frauschi/fix_implicit_conversion
Fix implicit type conversion
2 parents 9db2077 + 3fbbc7c commit 32f3f7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/port/liboqs/liboqs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int liboqs_init = 0;
5050

5151
static void wolfSSL_liboqsGetRandomData(uint8_t* buffer, size_t numOfBytes)
5252
{
53-
int ret = wc_RNG_GenerateBlock(liboqsCurrentRNG, buffer, numOfBytes);
53+
int ret = wc_RNG_GenerateBlock(liboqsCurrentRNG, buffer, (word32)numOfBytes);
5454
if (ret != 0) {
5555
// ToDo: liboqs exits programm if RNG fails, not sure what to do here
5656
}

0 commit comments

Comments
 (0)