Skip to content

Commit

Permalink
fix column to be nil as well
Browse files Browse the repository at this point in the history
  • Loading branch information
confact committed Sep 9, 2023
1 parent b077bb1 commit 68e8e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sourcemap_parser/source_map.cr
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module SourceMap
end
end

def mapping_with_less_column_for(generated_line : Int32, generated_column : Int32, start_column : Int32 = 1) : Mapping?
def mapping_with_less_column_for(generated_line : Int32, generated_column : Int32?, start_column : Int32 = 1) : Mapping?
mapping_with_source_path_for(generated_line, (generated_column || start_column) - 1)
end

Expand Down

0 comments on commit 68e8e49

Please sign in to comment.