Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / main.cpp
diff options
context:
space:
mode:
Commit0ba5eb38f9e6974271c5efa09438f11055820933 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-10-28 17:08:32 +0200
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-10-28 17:08:32 +0200
Files51effc8b809c5d71ed323181ad6bb585f72c2ee0 /JSImpl/src/main.cpp
IPL-0ba5eb38f9e6974271c5efa09438f11055820933.tar
IPL-0ba5eb38f9e6974271c5efa09438f11055820933.tar.gz
IPL-0ba5eb38f9e6974271c5efa09438f11055820933.zip
Parent0bf63ffd7e8643198223e3820260082cfbb3b654 (diff)
Fixed for increment step filling up the stack
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;
}