Skip to content

Commit

Permalink
Correct a typo it is min not max
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-roucaries committed Feb 1, 2015
1 parent b245e30 commit 8b4ae62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qucs-core/src/history.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void history::drop (void) {
r += this->unused ();
if (r >= 2)
r -= 2;
r = std::max(r,this->values->size());
r = std::min(r,this->values->size());
if (r > 127)
/* erase the first r value */
this->values->erase(this->values->begin(),this->values->begin()+r);
Expand Down

0 comments on commit 8b4ae62

Please sign in to comment.