aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-05 16:06:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-05 16:09:39 +0200
commit121a8f0954ed61b9702f409a9d2bb2b4940541c0 (patch)
treebafa81d8849ea29f09d417c4324bf9c410f73ab0
parentf426af00bfb872bf7374fe71f419713ec15f88c7 (diff)
Tweak name_value_scanner::position() implementation
-rw-r--r--mod/module.cxx2
-rw-r--r--mod/module.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/module.cxx b/mod/module.cxx
index 9209f3f..2fcadd2 100644
--- a/mod/module.cxx
+++ b/mod/module.cxx
@@ -410,6 +410,6 @@ namespace brep
size_t handler::name_value_scanner::
position ()
{
- return i_ - name_values_.begin ();
+ return (i_ - name_values_.begin ()) * 2 + (name_ ? 0 : 1);
}
}
diff --git a/mod/module.hxx b/mod/module.hxx
index 3056425..6423e6d 100644
--- a/mod/module.hxx
+++ b/mod/module.hxx
@@ -135,7 +135,7 @@ namespace brep
virtual void
skip ();
- virtual size_t
+ virtual std::size_t
position ();
private: