mercurial/parsers.c
changeset 26775 3c259710737c
parent 26774 04ab2348efd1
child 26872 ce03e72837c6
--- a/mercurial/parsers.c	Sat Oct 17 23:14:13 2015 +0900
+++ b/mercurial/parsers.c	Sun Oct 18 09:05:04 2015 +0900
@@ -1577,7 +1577,7 @@
 static int nt_init(indexObject *self)
 {
 	if (self->nt == NULL) {
-		if (self->raw_length > INT_MAX / sizeof(nodetree)) {
+		if ((size_t)self->raw_length > INT_MAX / sizeof(nodetree)) {
 			PyErr_SetString(PyExc_ValueError, "overflow in nt_init");
 			return -1;
 		}