QuadProgpp
QuadProgpp copied to clipboard
Compiler warning that might indicate a true bug
I am getting: "unary minus operator applied to unsigned type, result still unsigned" in QuadProg++.cc line 202
The line reads: A[i] = -i - 1; where i has been defined as unsigned int on line 85
This looks like a potential bug. For example, if i is 1 then instead of setting A[1] = -2 it will set A[1] = 0
I am not familiar enough with the code to say if this was intentional, but I doubt it.