diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-05 16:06:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-05 16:09:39 +0200 |
commit | 121a8f0954ed61b9702f409a9d2bb2b4940541c0 (patch) | |
tree | bafa81d8849ea29f09d417c4324bf9c410f73ab0 /mod/module.cxx | |
parent | f426af00bfb872bf7374fe71f419713ec15f88c7 (diff) |
Tweak name_value_scanner::position() implementation
Diffstat (limited to 'mod/module.cxx')
-rw-r--r-- | mod/module.cxx | 2 |
1 files changed, 1 insertions, 1 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); } } |