Deprecation fix
samoconnor opened this issue · comments
Sam O'Connor commented
diff --git a/src/hash_common.jl b/src/hash_common.jl
index 12f1679..f54a3cf 100644
--- a/src/hash_common.jl
+++ b/src/hash_common.jl
@@ -31,7 +31,7 @@ end
# The function that maps from a NettleHash to a HashType
function HashType(nh::NettleHash, nhptr::Ptr{Void})
- HashType( uppercase(bytestring(nh.name)),
+ HashType( uppercase(unsafe_string(nh.name)),
nh.context_size, nh.digest_size, nh.block_size,
nh.init, nh.update, nh.digest, nhptr)
Tony Kelman commented
included in #71. open pull requests rather than posting patches in issues please.