diff --git a/src/line_and_column.hh b/src/line_and_column.hh index fb09223b..8c8c1603 100644 --- a/src/line_and_column.hh +++ b/src/line_and_column.hh @@ -22,7 +22,7 @@ struct LineAndColumn { line += other.line; column += other.column; - return *this; + return *static_cast(this); } EffectiveType operator-(const EffectiveType& other) const @@ -34,7 +34,7 @@ struct LineAndColumn { line += other.line; column += other.column; - return *this; + return *static_cast(this); } };