Skip to content

Commit 5d07012

Browse files
committed
cater to TOML parsing changes in nightlies
TOML parser in julia nightly seems to return Int64 arrays when parsing array of numbers even on a 32 bit systems. This change makes the necessary conversion required to get a displaysize from configuration.
1 parent 2e274d8 commit 5d07012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connectors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ function logcompose(::Type{Logging.ConsoleLogger}, config::Dict{String,Any}, log
4040

4141
displaysize = get(logger_config, "displaysize", nothing)
4242
if displaysize !== nothing
43-
if !(displaysize isa AbstractVector{Int}) || length(displaysize) != 2
43+
if !(displaysize isa AbstractVector) || length(displaysize) != 2
4444
error("Expected [height,width] but got displaysize=$displaysize")
4545
end
46-
stream = IOContext(stream, :displaysize=>Tuple(displaysize))
46+
stream = IOContext(stream, :displaysize=>Tuple(convert(Vector{Int},displaysize)))
4747
end
4848

4949
show_limited = get(logger_config, "show_limited", true)

0 commit comments

Comments
 (0)