mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 238419
Fix bug that broke the stricter compilation rules.
This commit is contained in:
parent
86da81e859
commit
001600310c
1 changed files with 2 additions and 2 deletions
|
@ -554,8 +554,8 @@ public class DisassemblyDocument extends REDDocument {
|
||||||
for (Iterator<Position> iterator = getPositionIterator(CATEGORY_SOURCE, 0); iterator.hasNext(); ) {
|
for (Iterator<Position> iterator = getPositionIterator(CATEGORY_SOURCE, 0); iterator.hasNext(); ) {
|
||||||
SourcePosition pos= (SourcePosition) iterator.next();
|
SourcePosition pos= (SourcePosition) iterator.next();
|
||||||
if (pos.fFileInfo == info && pos.fValid && lineNumber >= pos.fLine) {
|
if (pos.fFileInfo == info && pos.fValid && lineNumber >= pos.fLine) {
|
||||||
int baseOffset= info.fSource.getLineOffset(srcPos.fLine);
|
int baseOffset= info.fSource.getLineOffset(pos.fLine);
|
||||||
if (lineOffset + lineLength - baseOffset <= srcPos.length) {
|
if (lineOffset + lineLength - baseOffset <= pos.length) {
|
||||||
srcPos= pos;
|
srcPos= pos;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue