QuadProgpp icon indicating copy to clipboard operation
QuadProgpp copied to clipboard

Compiler warning that might indicate a true bug

Open dklein0 opened this issue 4 months ago • 0 comments

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.

dklein0 avatar Oct 13 '24 06:10 dklein0