summaryrefslogtreecommitdiff
path: root/src/op.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 05:53:41 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 05:53:41 -0600
commitfa3805282a7967ebd4dd26d2dc1d5cc1a3140a74 (patch)
treeb629f4d14793666b3725a44f8f1014280e512f6e /src/op.cc
parent036200e959db6a3b9fe0d02f9eec3eb131983ab4 (diff)
downloadfork-ledger-fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74.tar.gz
fork-ledger-fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74.tar.bz2
fork-ledger-fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74.zip
Added an assert
Diffstat (limited to 'src/op.cc')
-rw-r--r--src/op.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op.cc b/src/op.cc
index bd2cc32f..c8e099e7 100644
--- a/src/op.cc
+++ b/src/op.cc
@@ -89,6 +89,8 @@ expr_t::ptr_op_t expr_t::op_t::compile(scope_t& scope, const int depth)
}
#endif
+ assert(kind < LAST);
+
if (is_ident()) {
DEBUG("expr.compile", "Lookup: " << as_ident() << " in " << scope_ptr);
if (ptr_op_t def = scope_ptr->lookup(symbol_t::FUNCTION, as_ident())) {