Skip to content

Commit

Permalink
Fixing platform issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bergel committed Feb 28, 2024
1 parent 3cdf2eb commit 69b8527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ const essential_filters = [no_filters; [StaticLint.MissingReference, StaticLint.


# Return (line, column) for a given offset in a source
function convert_offset_to_line_from_filename(offset::Int64, filename::String)
function convert_offset_to_line_from_filename(offset::Int, filename::String)
all_lines = open(io->readlines(io), filename)
return convert_offset_to_line_from_lines(offset, all_lines)
end

function convert_offset_to_line(offset::Int64, source::String)
function convert_offset_to_line(offset::Int, source::String)
return convert_offset_to_line_from_lines(offset, split(source, "\n"))
end


function convert_offset_to_line_from_lines(offset::Int64, all_lines)
function convert_offset_to_line_from_lines(offset::Int, all_lines)
offset < 0 && throw(BoundsError("source", offset))

current_index = 1
Expand Down

0 comments on commit 69b8527

Please sign in to comment.