1
0
Fork 0
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:
Marc Khouzam 2008-06-25 15:22:29 +00:00
parent 86da81e859
commit 001600310c

View file

@ -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;
} }