Skip to content

Commit e50c7af

Browse files
cyliangtwadbridge
authored andcommitted
Resolve TRNG GCC warning
1 parent db119c7 commit e50c7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NUVOTON/TARGET_NUC472/trng_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
8686
memcpy(output, &tmpBuff, length);
8787
*output_length = length;
8888
} else {
89-
for (int i = 0; i < (length/32); i++) {
89+
for (size_t i = 0; i < (length/32); i++) {
9090
trng_get(output);
9191
*output_length += 32;
9292
output += 32;

0 commit comments

Comments
 (0)