Skip to content

Commit ec945db

Browse files
committed
[NUC472] Resolve TRNG GCC warning
1 parent 3ff2df1 commit ec945db

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)