refactor: change pre-decrement/increment to post (#19799)

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
Lewis Russell
2022-08-16 12:26:08 +01:00
committed by GitHub
parent 9a4b8dc603
commit 542fa8a9cc
32 changed files with 351 additions and 360 deletions

View File

@@ -1338,7 +1338,7 @@ static void closescript(void)
file_free(scriptin[curscript], false);
scriptin[curscript] = NULL;
if (curscript > 0) {
--curscript;
curscript--;
}
}
@@ -2396,7 +2396,7 @@ static int vgetorpeek(bool advance)
return NUL;
}
++vgetc_busy;
vgetc_busy++;
if (advance) {
KeyStuffed = FALSE;
@@ -2783,7 +2783,7 @@ static int vgetorpeek(bool advance)
gotchars(nop_buf, 3);
}
--vgetc_busy;
vgetc_busy--;
return c;
}