aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-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: