# HG changeset patch # User Matt Harbison <matt_harbi...@yahoo.com> # Date 1533873165 14400 # Thu Aug 09 23:52:45 2018 -0400 # Node ID 87d4715a29768208e0345cc6314ad267c8711df6 # Parent 36b8875f1f317742e3914b1dacde6af73a15a045 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 @@ -1538,7 +1538,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; _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel