Skip to content

Commit dccf69a

Browse files
authored
syntax
1 parent bf9221a commit dccf69a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PlotsBase/ext/GastonExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ function gaston_fix_ticks_overflow(ticks::AbstractVector)
687687
if eltype(ticks) <: Integer
688688
of = if isdefined(Gaston, :GNUPLOT_VERSION)
689689
# toggle Int32 - Int64 for older gnuplot version
690-
typemax(Gaston.GNUPLOT_VERSION[] v"5.4.0" ? Int64 : Int32)
690+
Gaston.GNUPLOT_VERSION[] v"5.4.0" ? Int64 : Int32
691691
else
692-
typemax(Int32)
693-
end
692+
Int32
693+
end |> typemax
694694
any(t -> abs(t) > of, ticks) && return float.(ticks)
695695
end
696696
return ticks

0 commit comments

Comments
 (0)