File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -660,6 +660,7 @@ function promote_to_concrete(vs; tofloat = true, use_union = true)
660
660
I = Int8
661
661
has_int = false
662
662
has_array = false
663
+ has_bool = false
663
664
array_T = nothing
664
665
for v in vs
665
666
if v isa AbstractArray
@@ -672,6 +673,9 @@ function promote_to_concrete(vs; tofloat = true, use_union = true)
672
673
has_int = true
673
674
I = promote_type (I, E)
674
675
end
676
+ if E <: Bool
677
+ has_bool = true
678
+ end
675
679
end
676
680
if tofloat && ! has_array
677
681
C = float (C)
@@ -682,6 +686,9 @@ function promote_to_concrete(vs; tofloat = true, use_union = true)
682
686
if has_int
683
687
C = Union{C, I}
684
688
end
689
+ if has_bool
690
+ C = Union{C, Bool}
691
+ end
685
692
return copyto! (similar (vs, C), vs)
686
693
end
687
694
convert .(C, vs)
You can’t perform that action at this time.
0 commit comments