0
0
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:
Arseny Kapoulkine 2017-02-07 20:34:49 -08:00
parent 2162a0d80c
commit d4c456bdef

View File

@ -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;
}
}