[NUC472] Resolve TRNG GCC warning

pull/3434/head
cyliangtw 2016-12-12 14:42:17 +08:00
parent 3ff2df1875
commit ec945db013
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
memcpy(output, &tmpBuff, length);
*output_length = length;
} else {
for (int i = 0; i < (length/32); i++) {
for (size_t i = 0; i < (length/32); i++) {
trng_get(output);
*output_length += 32;
output += 32;