diff --git a/core/Hexstring.cc b/core/Hexstring.cc
index d8a4027cb83a81aebebd8543f51c5fee60a183fa..1de79d3587b6c809ca123d7e5d1cd1bf5187bf53 100644
--- a/core/Hexstring.cc
+++ b/core/Hexstring.cc
@@ -896,7 +896,7 @@ int HEXSTRING::XER_encode(const XERdescriptor_t& p_td,
 
 }
 
-unsigned int xlate_hs(cbyte*in, int phase, unsigned char*dest) {
+unsigned int xlate_hs(xmlChar in[4], int phase, unsigned char*dest) {
   static unsigned char nbytes[4] = { 3,1,1,2 };
   unsigned char out[4];