summaryrefslogtreecommitdiff
path: root/src/expr/metakind_template.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-06-03 00:09:14 +0000
committerMorgan Deters <mdeters@gmail.com>2010-06-03 00:09:14 +0000
commitd0dc48f0dcba16849fcc9c8649728d813f7c2305 (patch)
tree13aa5fda660fdbce9cf265544419975557601d11 /src/expr/metakind_template.h
parent3e1ab30ae6f4504b2a94224d5f0dfcfdf32aed6e (diff)
resolving bug 139: metaKindOf() warnings still exist, but it's probably a g++ 4.3 and 4.4 issue
Diffstat (limited to 'src/expr/metakind_template.h')
-rw-r--r--src/expr/metakind_template.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr/metakind_template.h b/src/expr/metakind_template.h
index b2e45533a..fc0910893 100644
--- a/src/expr/metakind_template.h
+++ b/src/expr/metakind_template.h
@@ -123,6 +123,8 @@ ${metakind_kinds}
metakind::INVALID /* LAST_KIND */
};/* metaKinds[] */
+ Assert(k >= kind::NULL_EXPR && k < kind::LAST_KIND);
+
return metaKinds[k];
}/* metaKindOf(k) */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback