Add invalid type assertion for offset_debug
This will make sure we don't forget to implement offset_debug for new node types if they ever happen (really it's mostly for consistency).
This commit is contained in:
parent
2162a0d80c
commit
d4c456bdef
1 changed files with 1 additions and 0 deletions
|
@ -6286,6 +6286,7 @@ namespace pugi
|
|||
return _root->value && (_root->header & impl::xml_memory_page_value_allocated_or_shared_mask) == 0 ? _root->value - doc.buffer : -1;
|
||||
|
||||
default:
|
||||
assert(false && "Invalid node type");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue