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

Commit 5ef3cb7

Browse files
authored
Merge pull request #49 from JuliaGeometry/sjk/05compat
0.5 compat
2 parents 08e1b30 + c51ecc8 commit 5ef3cb7

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
language: julia
22
os:
33
- linux
4-
- osx
54
julia:
6-
- release
5+
- 0.3
6+
- 0.4
7+
- 0.5
78
- nightly
89
notifications:
910
email: false

src/generate_arrays.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ function generate_arrays(maxSz::Integer)
4646
const reductions = ((:sum,:+),(:prod,:*),(:minimum,:min),(:maximum,:max))
4747

4848
# expression functions
49-
vecTyp(n) = symbol(string("Vector",n))
49+
vecTyp(n) = @compat Symbol(string("Vector",n))
5050
vecTypT(n) = Expr(:curly, vecTyp(n), :T)
51-
matTyp(r,c) = symbol(string("Matrix",r,"x",c))
51+
matTyp(r,c) = @compat Symbol(string("Matrix",r,"x",c))
5252
matTypT(r,c) = Expr(:curly, matTyp(r,c,), :T)
53-
elt(i) = symbol(string("e",i))
54-
col(i) = symbol(string("c",i))
53+
elt(i) = @compat Symbol(string("e",i))
54+
col(i) = @compat Symbol(string("c",i))
5555
mem(s,e) = Expr(:.,s,Expr(:quote,e))
5656
velt(v,i) = mem(v,elt(i))
5757
melt(m,i,j) = mem(mem(m,col(j)),elt(i))
@@ -78,7 +78,7 @@ function generate_arrays(maxSz::Integer)
7878
ctorn_body = :($TypT())
7979
ctor1_body = :($TypT())
8080
for i = 1:sz
81-
local arg = symbol(string("a",i))
81+
local arg = @compat Symbol(string("a",i))
8282
push!(ctorn_sig.args, :($arg::T))
8383
push!(ctorn_body.args, arg)
8484
push!(ctor1_body.args, :a)
@@ -269,7 +269,7 @@ function generate_arrays(maxSz::Integer)
269269
ctorn_body = :($TypT())
270270
ctor1_body = :($TypT())
271271
for i = 1:cSz
272-
local arg = symbol(string("a",i))
272+
local arg = @compat Symbol(string("a",i))
273273
push!(ctorn_sig.args, :($arg::$ColTypT))
274274
push!(ctorn_body.args, arg)
275275
push!(ctor1_body.args, :a)

0 commit comments

Comments
 (0)