Skip to content

Commit 18448ba

Browse files
authored
Merge pull request #87 from pfitzseb/sp/julia-1.0
Fix deprecation warnings
2 parents bd70d73 + a7d2b52 commit 18448ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/MacroTools.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
__precompile__(true)
21
module MacroTools
32

43
using Compat

src/examples/threading.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ macro >(exs...)
2222
isexpr(ex, :block) ? thread(x, rmlines(ex).args...) :
2323
Expr(:call, ex, x)
2424

25-
thread(x, exs...) = reduce(thread, x, exs)
25+
thread(x, exs...) = reduce(thread, exs, init=x)
2626

2727
esc(thread(exs...))
2828
end
@@ -42,7 +42,7 @@ macro >>(exs...)
4242
isexpr(ex, :block) ? thread(x, rmlines(ex).args...) :
4343
Expr(:call, ex, x)
4444

45-
thread(x, exs...) = reduce(thread, x, exs)
45+
thread(x, exs...) = reduce(thread, exs, init=x)
4646

4747
esc(thread(exs...))
4848
end

0 commit comments

Comments
 (0)