Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / main.cpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--JSImpl/src/main.cpp4
diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp
index 1cc7de8..3fe6f99 100644
--- a/JSImpl/src/main.cpp
+++ b/JSImpl/src/main.cpp
@@ -19,8 +19,8 @@ void RunParseCalc()
auto result = i.Run(expr.get());
std::cout << "Stack after run, top to bottom:" << std::endl;
while (!result.empty()) {
- std::cout << result.top() << std::endl;
- result.pop();
+ std::cout << result.back() << std::endl;
+ result.pop_back();
}
std::cout << "S = " << i.ModifyVariable("s") << std::endl;
}