diff mercurial/cext/parsers.c @ 33780:a22339d389d4

cext: modernize charencode.c to use Py_ssize_t
author Yuya Nishihara <yuya@tcha.org>
date Mon, 31 Jul 2017 22:58:06 +0900
parents 0f4ac3b6dee4
children 4ba863c88135
line wrap: on
line diff
--- a/mercurial/cext/parsers.c	Sun May 21 14:23:22 2017 +0900
+++ b/mercurial/cext/parsers.c	Mon Jul 31 22:58:06 2017 +0900
@@ -85,7 +85,7 @@
 
 		nlen = newline - zero - 1;
 
-		node = unhexlify(zero + 1, nlen > 40 ? 40 : (int)nlen);
+		node = unhexlify(zero + 1, nlen > 40 ? 40 : (Py_ssize_t)nlen);
 		if (!node)
 			goto bail;