mirror of
https://github.com/louisrubet/rpn
synced 2024-12-30 10:23:32 +01:00
#5: changes due to stack refactoring
This commit is contained in:
parent
7de1177570
commit
d175626a9d
1 changed files with 2 additions and 2 deletions
|
@ -97,10 +97,10 @@ void program::test()
|
|||
string stack_should_be = entry.substr(stack_value.size());
|
||||
string stack_is;
|
||||
string tmp;
|
||||
for (int i = (int)stk.size() - 1; i >= 0; i--)
|
||||
for (int i = 0; i < (int)stk.size(); i++)
|
||||
{
|
||||
stringstream os;
|
||||
if (i < (int)(stk.size() - 1))
|
||||
if (i > 0)
|
||||
stack_is += ", ";
|
||||
((object*)stk.seq_obj(i))->show(os);
|
||||
getline(os, tmp);
|
||||
|
|
Loading…
Reference in a new issue