Skip to content

Commit 5b22374

Browse files
authored
Merge pull request #36 from Sacha0/fixdepwarns
fix depwarns under 0.7 and bump REQUIRE and CI to 0.6
2 parents 337a8f7 + b9f21f2 commit 5b22374

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ os:
33
- linux
44
- osx
55
julia:
6-
- 0.4
7-
- 0.5
6+
- 0.6
87
- nightly
98
notifications:
109
email: false

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
julia 0.4
1+
julia 0.6
22
Compat 0.17.0

src/types.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,33 @@ import Base: copy
77

88
# We derive SHA1_CTX straight from SHA_CTX since it doesn't have a
99
# family of types like SHA2 or SHA3 do
10-
type SHA1_CTX <: SHA_CTX
10+
mutable struct SHA1_CTX <: SHA_CTX
1111
state::Array{UInt32,1}
1212
bytecount::UInt64
1313
buffer::Array{UInt8,1}
1414
W::Array{UInt32,1}
1515
end
1616

1717
# SHA2 224/256/384/512-bit Context Structures
18-
type SHA2_224_CTX <: SHA2_CTX
18+
mutable struct SHA2_224_CTX <: SHA2_CTX
1919
state::Array{UInt32,1}
2020
bytecount::UInt64
2121
buffer::Array{UInt8,1}
2222
end
2323

24-
type SHA2_256_CTX <: SHA2_CTX
24+
mutable struct SHA2_256_CTX <: SHA2_CTX
2525
state::Array{UInt32,1}
2626
bytecount::UInt64
2727
buffer::Array{UInt8,1}
2828
end
2929

30-
type SHA2_384_CTX <: SHA2_CTX
30+
mutable struct SHA2_384_CTX <: SHA2_CTX
3131
state::Array{UInt64,1}
3232
bytecount::UInt128
3333
buffer::Array{UInt8,1}
3434
end
3535

36-
type SHA2_512_CTX <: SHA2_CTX
36+
mutable struct SHA2_512_CTX <: SHA2_CTX
3737
state::Array{UInt64,1}
3838
bytecount::UInt128
3939
buffer::Array{UInt8,1}
@@ -47,22 +47,22 @@ const SHA512_CTX = SHA2_512_CTX
4747

4848

4949
# SHA3 224/256/384/512-bit context structures
50-
type SHA3_224_CTX <: SHA3_CTX
50+
mutable struct SHA3_224_CTX <: SHA3_CTX
5151
state::Array{UInt64,1}
5252
bytecount::UInt128
5353
buffer::Array{UInt8,1}
5454
end
55-
type SHA3_256_CTX <: SHA3_CTX
55+
mutable struct SHA3_256_CTX <: SHA3_CTX
5656
state::Array{UInt64,1}
5757
bytecount::UInt128
5858
buffer::Array{UInt8,1}
5959
end
60-
type SHA3_384_CTX <: SHA3_CTX
60+
mutable struct SHA3_384_CTX <: SHA3_CTX
6161
state::Array{UInt64,1}
6262
bytecount::UInt128
6363
buffer::Array{UInt8,1}
6464
end
65-
type SHA3_512_CTX <: SHA3_CTX
65+
mutable struct SHA3_512_CTX <: SHA3_CTX
6666
state::Array{UInt64,1}
6767
bytecount::UInt128
6868
buffer::Array{UInt8,1}

0 commit comments

Comments
 (0)