summaryrefslogtreecommitdiff
path: root/src/op.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/op.cc')
-rw-r--r--src/op.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op.cc b/src/op.cc
index b412c47f..d4f7d80b 100644
--- a/src/op.cc
+++ b/src/op.cc
@@ -763,7 +763,8 @@ bool expr_t::op_t::print(std::ostream& out, print_context_t& context) const
bool found = false;
if (context.start_pos && this == context.op_to_find) {
- *context.start_pos = static_cast<unsigned long>(out.tellp()) - 1;
+ *context.start_pos = out.tellp();
+ *context.start_pos--;
found = true;
}