summaryrefslogtreecommitdiff
path: root/src/op.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-30 18:02:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-30 18:02:10 -0400
commit44813969132e0bc07f4b1e8b1445032b194ef374 (patch)
tree7741b2d93d9b9a24847df0d6f56b40263b34c479 /src/op.h
parent1dce419ba32d4ac89ebf74977999105bbb450914 (diff)
downloadfork-ledger-44813969132e0bc07f4b1e8b1445032b194ef374.tar.gz
fork-ledger-44813969132e0bc07f4b1e8b1445032b194ef374.tar.bz2
fork-ledger-44813969132e0bc07f4b1e8b1445032b194ef374.zip
Added an assert for op_t::left()
Diffstat (limited to 'src/op.h')
-rw-r--r--src/op.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/op.h b/src/op.h
index c79ed3f6..7690d6bc 100644
--- a/src/op.h
+++ b/src/op.h
@@ -192,6 +192,7 @@ public:
}
ptr_op_t& left() {
+ assert(kind > TERMINALS || kind == IDENT);
return left_;
}
const ptr_op_t& left() const {