mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-14 01:47:55 +08:00
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
@ -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…
x
Reference in New Issue
Block a user