# HG changeset patch # User Matt Harbison # Date 2018-08-10 03:52:45 # Node ID beab6690f2027d2ecfa8189110abe6aa27b70e7a # Parent 34eb999e29bf3371606a19dd09c507d8d5829a88 cext: fix Windows warning about implicit conversion of 32-bit shift to 64 bit mercurial/cext/revlog.c(1541) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift int ended?) diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -1535,7 +1535,7 @@ static PyObject *find_deepest(indexObjec goto bail; } - interesting = calloc(sizeof(*interesting), 1 << revcount); + interesting = calloc(sizeof(*interesting), ((size_t)1) << revcount); if (interesting == NULL) { PyErr_NoMemory(); goto bail;