Skip to content

Commit 0d068e3

Browse files
wsshinjishnub
andauthored
Suppress wrong broadcasting over x in broadcasteval() (#88)
* Surround x with Ref() in broadcasteval() * version bump to v0.7.2 Co-authored-by: Jishnu Bhattacharya <[email protected]>
1 parent 8d5ee81 commit 0d068e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.7.1"
3+
version = "0.7.2"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/Fun.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ broadcastdomain(b::Broadcasted) = mapreduce(broadcastdomain, ∪, b.args)
596596
broadcasteval(f::Function, x) = f(x)
597597
broadcasteval(c, x) = c
598598
broadcasteval(c::Ref, x) = c.x
599-
broadcasteval(b::Broadcasted, x) = b.f(broadcasteval.(b.args, x)...)
599+
broadcasteval(b::Broadcasted, x) = b.f(broadcasteval.(b.args, Ref(x))...)
600600

601601
# TODO: use generated function to improve the following
602602
function copy(bc::Broadcasted{FunStyle})

0 commit comments

Comments
 (0)