Skip to content

Commit

Permalink
Fix recursion in display
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Jun 4, 2016
1 parent 6bbf7c2 commit e2d7878
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function representation(a::Interval{BigFloat}, format=nothing)
subscriptify(precision(a.lo)) )

elseif format == :full
invoke(representation, (Interval,), a)
invoke(representation, (Interval, Symbol), a, format)
end
end

Expand All @@ -131,10 +131,10 @@ function representation(a::DecoratedInterval, format=nothing)
end

if format==:full
return "DecoratedInterval($(interval_part(a)), $(decoration(a)))"
return "DecoratedInterval( $(representation(interval_part(a), format)), $(decoration(a)) )"
end

interval = representation(interval_part(a))
interval = representation(interval_part(a), format)

if display_params.decorations
string(interval, "_", decoration(a))
Expand Down

0 comments on commit e2d7878

Please sign in to comment.