mercurial/cext/revlog.c
changeset 39073 beab6690f202
parent 39072 34eb999e29bf
child 39074 acd23830bcd6
--- a/mercurial/cext/revlog.c	Thu Aug 09 00:09:03 2018 -0700
+++ b/mercurial/cext/revlog.c	Thu Aug 09 23:52:45 2018 -0400
@@ -1535,7 +1535,7 @@
 		goto bail;
 	}
 
-	interesting = calloc(sizeof(*interesting), 1 << revcount);
+	interesting = calloc(sizeof(*interesting), ((size_t)1) << revcount);
 	if (interesting == NULL) {
 		PyErr_NoMemory();
 		goto bail;