From 137805e52c51ad97cff22293f4431b20fd5a03ed Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Thu, 29 Mar 2018 10:28:31 +0300 Subject: [PATCH] Fix minor bug in compiler backend message reporting --- .../org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt index 1d65254e158..056713ae58b 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt @@ -63,8 +63,8 @@ abstract internal class KonanBackendContext(val config: KonanConfig) : CommonBac val sourceRangeInfo = containingFile.fileEntry.getSourceRangeInfo(this.startOffset, this.endOffset) return CompilerMessageLocation.create( path = sourceRangeInfo.filePath, - line = sourceRangeInfo.startLineNumber, - column = sourceRangeInfo.startColumnNumber, + line = sourceRangeInfo.startLineNumber + 1, + column = sourceRangeInfo.startColumnNumber + 1, lineContent = null // TODO: retrieve the line content. ) }