D7913: cext: fix compiler warning about sign changing

Yuya Nishihara yuya at tcha.org
Fri Jan 17 07:09:03 EST 2020


>  static PyObject *hashflags(line *l)
>  {
>  	char *s = l->start;
> -	size_t plen = pathlen(l);
> +	Py_ssize_t plen = pathlen(l);

We'll probably want to change `hplen` to `Py_ssize_t` as well.


More information about the Mercurial-devel mailing list