Defeat some miscellaneous warnings in the g++ build

This commit is contained in:
ridiculousfish
2017-01-26 17:28:46 -08:00
parent e78cefd759
commit a40f491c93
7 changed files with 14 additions and 13 deletions

View File

@@ -103,7 +103,6 @@ node_offset_t parse_execution_context_t::get_offset(const parse_node_t &node) co
const parse_node_t *addr = &node;
const parse_node_t *base = &this->tree.at(0);
assert(addr >= base);
assert(addr - base < SOURCE_OFFSET_INVALID);
node_offset_t offset = static_cast<node_offset_t>(addr - base);
assert(offset < this->tree.size());
assert(&tree.at(offset) == &node);