Skip to content

Commit 453ca66

Browse files
committed
change var
1 parent 29e0af3 commit 453ca66

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wolfcrypt/src/sp_int.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18066,8 +18066,6 @@ int sp_read_unsigned_bin(sp_int* a, const byte* in, word32 inSz)
1806618066
/* Load full digits at a time from in. */
1806718067
int i;
1806818068
int j = 0;
18069-
int k;
18070-
(void) k;
1807118069

1807218070
a->used = (sp_size_t)((inSz + SP_WORD_SIZEOF - 1) / SP_WORD_SIZEOF);
1807318071

@@ -18079,8 +18077,8 @@ int sp_read_unsigned_bin(sp_int* a, const byte* in, word32 inSz)
1807918077
a->dp[j++] = *(sp_int_digit*)(in + i - (SP_WORD_SIZEOF - 1));
1808018078
}
1808118079
#else
18082-
for (k = 0; k < (int)a->used; k++) {
18083-
a->dp[k] = 0;
18080+
for (i = 0; i < (int)a->used; i++) {
18081+
a->dp[i] = 0;
1808418082
}
1808518083
/* Construct digit from required number of bytes. */
1808618084
for (i = (int)(inSz-1); i >= SP_WORD_SIZEOF - 1; i -= SP_WORD_SIZEOF) {

0 commit comments

Comments
 (0)