From 6b30374b3af8ecbfe9b4e5799ab0735ab5f58d2f Mon Sep 17 00:00:00 2001 From: Aviral Goel Date: Fri, 7 Feb 2025 15:16:39 -0800 Subject: [PATCH] Cast types appropriately to fix compilation error. --- Analysis/src/Transpiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Analysis/src/Transpiler.cpp b/Analysis/src/Transpiler.cpp index b90f0f9f..eee41f24 100644 --- a/Analysis/src/Transpiler.cpp +++ b/Analysis/src/Transpiler.cpp @@ -117,9 +117,9 @@ struct StringWriter : Writer index = newlinePos + 1; } - pos.line += numLines; + pos.line += unsigned(numLines); if (numLines > 0) - pos.column = unsigned(s.size()) - index; + pos.column = unsigned(s.size()) - unsigned(index); else pos.column += unsigned(s.size()); }