Skip to content

Commit 8e72d9a

Browse files
committed
more optimization
1 parent 5c11cf6 commit 8e72d9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

decode.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ void getWord(uint16_t n, char* buffer) {
4343
*buffer = 0;
4444
return;
4545
}
46-
n -= w->wordNumber;
4746
currentWord = 0;
4847
blobPtr = wordBlob + w->blobOffset;
49-
for (uint16_t j=0; j<=n; j++) {
48+
for (uint16_t j = n - w->wordNumber + 1; j; j--) {
5049
updateWord();
5150
}
5251
decodeWord(i, currentWord, buffer);

0 commit comments

Comments
 (0)