Skip to content
Snippets Groups Projects
Commit ba945f3c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Try to tell Coverity that getch() isn't constant.

I'm not sure if I can do this with events, or just issues, and I
don't want to directly annotate this issue because that could lead
to missing an issue after a future code change.

The return value of getch() will never be const though.
parent e3a446a9
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
Pipeline #7557 passed
......@@ -1218,6 +1218,7 @@ transfer_complete(bool success, bool was_binary)
lprintf(LOG_NOTICE, "Hit any key or wait %u seconds to continue...", timeout);
while (timeout > 0) {
if (kbhit()) {
/* coverity[cond_const:FALSE] */
if (getch() == (CIO_KEY_QUIT & 0xff)) {
if ((getch() << 8) == (CIO_KEY_QUIT & 0xff00))
check_exit(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment