Rewrote to get rid of "condition is always false" warning.

svn-id: r35639
This commit is contained in:
Torbjörn Andersson 2008-12-31 15:23:08 +00:00
parent 569636eb54
commit 890808fa4b

View File

@ -379,7 +379,7 @@ byte *loadShortenFromStream(Common::ReadStream &stream, int &size, int &rate, by
// FIXME: The original code did an invalid memory access here
// (if i and j are 0, the array index requested is -1)
// I've removed those invalid writes, since they happen all the time (even when curChannel is 0)
if (i - j - 1 < 0) // ignore invalid table/memory access
if (i <= j) // ignore invalid table/memory access
continue;
sum += lpc[j] * buffer[curChannel][i - j - 1];
}