Skip to content

Commit 7811862

Browse files
committed
Postfix for CORE-6466.
1 parent dfcb0ba commit 7811862

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/dsql/Parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ void Parser::yyReducePosn(YYPOSN& ret, YYPOSN* termPosns, YYSTYPE* /*termVals*/,
254254
// Accessing termPosns[-1] seems to be the only way to get correct positions in this case.
255255
ret.firstLine = ret.lastLine = termPosns[termNo - 1].lastLine;
256256
ret.firstColumn = ret.lastColumn = termPosns[termNo - 1].lastColumn;
257-
ret.firstPos = ret.lastPos = termPosns[termNo - 1].lastPos;
258-
ret.leadingFirstPos = ret.trailingLastPos = termPosns[termNo - 1].trailingLastPos;
257+
ret.firstPos = ret.lastPos = ret.trailingLastPos = termPosns[termNo - 1].trailingLastPos;
258+
ret.leadingFirstPos = termPosns[termNo - 1].lastPos;
259259
}
260260
else
261261
{

0 commit comments

Comments
 (0)