diff -bu Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2b.xs~ Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2b.xs
--- Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2b.xs~ 2014-03-22 14:23:04.000000000 -0500
+++ Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2b.xs 2014-03-22 14:24:09.000000000 -0500
@@ -24,7 +24,7 @@
};
inline static SV *
-encode_string(const char *src, enum encode_type type) {
+encode_string(pTHX_ const char *src, enum encode_type type) {
int encoded_len;
switch (type) {
@@ -154,5 +154,5 @@
}
blake2b_final(state, out, BLAKE2B_OUTBYTES);
Safefree(state);
- ST(0) = encode_string((char *)out, ix);
+ ST(0) = encode_string(aTHX_ (char *)out, ix);
XSRETURN(1);
diff -bu Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2s.xs~ Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2s.xs
--- Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2s.xs~ 2014-03-22 14:21:35.000000000 -0500
+++ Digest-BLAKE2-0.01-t_zrk3/lib/Digest/BLAKE2s.xs 2014-03-22 14:22:57.000000000 -0500
@@ -24,7 +24,7 @@
};
inline static SV *
-encode_string(const char *src, enum encode_type type) {
+encode_string(pTHX_ const char *src, enum encode_type type) {
int encoded_len;
switch (type) {
@@ -154,5 +154,5 @@
}
blake2s_final(state, out, BLAKE2S_OUTBYTES);
Safefree(state);
- ST(0) = encode_string((char *)out, ix);
+ ST(0) = encode_string(aTHX_ (char *)out, ix);
XSRETURN(1);