Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Dec 7, 2023
1 parent edba58c commit 0b62ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cellref.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ end

# Converts column number to a column name. See also XLSX.decode_column_number.
function encode_column_number(column_number::Int) :: String
@assert column_number > 0 && column_number <= EXCEL_MAX_COLS "Column number should be in the range from 1 to 16384."
@assert column_number > 0 && column_number <= EXCEL_MAX_COLS "Column number should be in the range from 1 to $EXCEL_MAX_COLS."

third_letter_sequence = div(column_number - 26 - 1, 26*26)
column_number = column_number - third_letter_sequence*(26*26)
Expand Down

0 comments on commit 0b62ad6

Please sign in to comment.