aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/go/gofrontend/lex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/go/gofrontend/lex.cc')
-rw-r--r--gcc-4.9/gcc/go/gofrontend/lex.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-4.9/gcc/go/gofrontend/lex.cc b/gcc-4.9/gcc/go/gofrontend/lex.cc
index 161696347..3404cedb5 100644
--- a/gcc-4.9/gcc/go/gofrontend/lex.cc
+++ b/gcc-4.9/gcc/go/gofrontend/lex.cc
@@ -598,7 +598,7 @@ Lex::next_token()
}
else if (p[1] == '*')
{
- this->lineoff_ = p - this->linebuf_;
+ this->lineoff_ = p + 2 - this->linebuf_;
Location location = this->location();
if (!this->skip_c_comment())
return Token::make_invalid_token(location);