summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-02-07 20:34:49 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-02-09 07:36:31 -0800
commitd4c456bdef566128ed18bcf066b430247ddb60b1 (patch)
treeb01b0f4bb346cd78ad7551ce60b444f9db901deb /src
parent2162a0d80c2ac29f835e09e0c5366cdc7a1c1a7d (diff)
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).
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 1a69ac6..7368184 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -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;
}
}