mirror of https://github.com/PCSX2/pcsx2.git
USB: Fix array index 'i' is used before limits check warning.
Codacy.
This commit is contained in:
parent
6047322f0c
commit
498eb9330b
|
@ -148,7 +148,7 @@ static int jo_processDU(jo_bits_t *bits, float A[64], const unsigned char htdc[9
|
|||
for(; (endpos>0)&&(Q[endpos]==0); --endpos) { /* do nothing */ }
|
||||
for(int i = 1; i <= endpos;) {
|
||||
int run = 0;
|
||||
while (Q[i]==0 && i<endpos) {
|
||||
while (i < endpos && Q[i] == 0) {
|
||||
++run;
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue