Skip to content

Commit 165ef97

Browse files
committed
syntax
1 parent 8ec75cc commit 165ef97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plots/src/backends/gaston.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,10 +561,10 @@ function gaston_fix_ticks_overflow(ticks::AbstractVector)
561561
if eltype(ticks) <: Integer
562562
of = if isdefined(Gaston, :GNUPLOT_VERSION)
563563
# toggle Int32 - Int64 for older gnuplot version
564-
typemax(Gaston.GNUPLOT_VERSION[] v"5.4.0" ? Int64 : Int32)
564+
Gaston.GNUPLOT_VERSION[] v"5.4.0" ? Int64 : Int32
565565
else
566-
typemax(Int32)
567-
end
566+
Int32
567+
end |> typemax
568568
any(t -> abs(t) > of, ticks) && return float.(ticks)
569569
end
570570
return ticks

0 commit comments

Comments
 (0)