aboutsummaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-17 11:24:42 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-17 11:24:42 +0800
commit5e16df071dfd41659b296dfde067749ef216a47c (patch)
tree2da90bd2a2e4be650c5e02989fea1267dade2c42 /model.cpp
parent57230f75d7bbdf1c8d278b464f60f01c937e6a07 (diff)
more doc
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.cpp b/model.cpp
index 2e28795..e454c72 100644
--- a/model.cpp
+++ b/model.cpp
@@ -100,9 +100,9 @@ string EvalObj::ext_repr() {
*top_ptr++ = this->get_repr_cons();
EvalObj *obj;
hash.insert(this);
- while (!(*repr_stack)->done)
+ while (!(*repr_stack)->prim)
{
- if ((*(top_ptr - 1))->done)
+ if ((*(top_ptr - 1))->prim)
{
top_ptr -= 2;
obj = (*top_ptr)->next((*(top_ptr + 1))->repr);