Skip to content

Commit

Permalink
fixed substr bug in LetterOf
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxollum committed Jun 1, 2020
1 parent a9a3303 commit 8d98a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NestedBlock/RoundBlock/Operators/OperatorsLetterOf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
std::string OperatorsLetterOf::getValue() const
{
int index = (int)(letter->getDouble())-1;
return str->getValue().substr(index, index+1);
return str->getValue().substr(index, 1);
}

OperatorsLetterOf::OperatorsLetterOf(std::shared_ptr<NestedBlock> l, std::shared_ptr<NestedBlock> s) : letter(l), str(s) {}

0 comments on commit 8d98a75

Please sign in to comment.