Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lemke algorithm files have booleans being compared to integers #42

Closed
leo-bart opened this issue Sep 19, 2017 · 1 comment
Closed

Lemke algorithm files have booleans being compared to integers #42

leo-bart opened this issue Sep 19, 2017 · 1 comment
Assignees
Labels

Comments

@leo-bart
Copy link

Lemke's linear complementarity solution have booleans being compared to integers when setting the debug level. This issue the following errors when compiling with g++:

lemke_algorithm.cc: In member function ‘fmatvec::Vec MBSim::LemkeAlgorithm::solve(unsigned int): lemke_algorithm.cc:72:20: error: comparison of constant ‘3’ with boolean expression is always false [-Werror=bool-compare] if (DEBUGLEVEL >= 3) { ^ lemke_algorithm.cc:93:24: error: comparison of constant ‘3’ with boolean expression is always false [-Werror=bool-compare] if (DEBUGLEVEL >= 3) { ^ lemke_algorithm.cc:139:20: error: comparison of constant ‘2’ with boolean expression is always false [-Werror=bool-compare] if (DEBUGLEVEL >= 2) {

@friedrichatgc friedrichatgc self-assigned this Sep 20, 2017
friedrichatgc pushed a commit that referenced this issue Sep 24, 2017
@friedrichatgc
Copy link
Member

fixed with 1f800a3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants