Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit a3aae33

Browse files
committed
Fix broadcast() tests
1 parent f7bfde5 commit a3aae33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lift.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ hasnulls() = false
3636
hasnulls(x) = isnull(x)
3737
hasnulls(x, xs...) = hasnulls(x) | hasnulls(xs...)
3838

39+
_unsafe_get() = ()
3940
_unsafe_get(x) = (unsafe_get(x),)
4041
_unsafe_get(x, xs...) = (unsafe_get(x), _unsafe_get(xs...)...)
4142

@@ -47,7 +48,7 @@ for a function call `f(xs...)`, return null if any `x` in `xs` is null; otherwis
4748
return `f` applied to values of `xs`.
4849
"""
4950
@inline function lift(f, xs...)
50-
if null_safe_op(f, eltype_nullable.(xs)...)
51+
if null_safe_op(f, map(eltype_nullable, xs)...)
5152
return @compat Nullable(f(_unsafe_get(xs...)...), !hasnulls(xs...))
5253
else
5354
U = Core.Inference.return_type(f, eltypes(xs...))

0 commit comments

Comments
 (0)