Index: deps/xmpp/c_src/jid.c --- deps/xmpp/c_src/jid.c.orig +++ deps/xmpp/c_src/jid.c @@ -42,12 +42,12 @@ static ERL_NIF_TERM string_to_usr(ErlNifEnv* env, int ErlNifBinary input; ERL_NIF_TERM node, domain, resource; int cs = 0, ret = 1; - char *node_start = NULL; - char *node_end = NULL; - char *domain_start = NULL; - char *domain_end = NULL; - char *resource_start = NULL; - char *resource_end = NULL; + signed char *node_start = NULL; + signed char *node_end = NULL; + signed char *domain_start = NULL; + signed char *domain_end = NULL; + signed char *resource_start = NULL; + signed char *resource_end = NULL; if (argc != 1) return enif_make_badarg(env); @@ -58,9 +58,9 @@ static ERL_NIF_TERM string_to_usr(ErlNifEnv* env, int if (!input.size) return enif_make_atom(env, "error"); - char *p = (char *) input.data; - char *pe = p + input.size; - char *eof = pe; + signed char *p = (signed char *) input.data; + signed char *pe = p + input.size; + signed char *eof = pe; #line 67 "jid.c"