Skip to content

Commit

Permalink
Macro invoke collision fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shahank42 authored Oct 13, 2022
1 parent 03eb4b5 commit 1df72a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connect4Board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int Connect4Board::getNextMoveInput()
{
std::cerr << "What are you even typing? Let's try that again.";
std::cin.clear();
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
std::cin.ignore((std::numeric_limits<std::streamsize>::max)(), '\n');
continue;
}

Expand Down Expand Up @@ -188,4 +188,4 @@ bool Connect4Board::checkForWinner()
}

return false;
}
}

0 comments on commit 1df72a9

Please sign in to comment.