coin-or / qpOASES

Open-source C++ implementation of the recently proposed online active set strategy
GNU Lesser General Public License v2.1
365 stars 127 forks source link

Easy to fix programming error in getRowNorm #88

Open svigerske opened 4 years ago

svigerske commented 4 years ago

Issue created by migration from Trac.

Original creator: ralf.ht

Original creation time: 2018-10-04 07:44:31

Assignee: ferreau

Version: 3.2.1

CC: ralf.ht@gmail.com

Keywords: getRowNorm

In the file qpOASES-3.2.1/src/Matrices.cpp is probably an error in line 853:

for (i = jc[j]; i < jc[j+1]; i++);

The semicolon at the end of the for-directive results in an empty body of the corresponding for-loop. The solution would be to just delete the semicolon.