Mercurial > hg-stable
changeset 39110:beab6690f202
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?)
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 09 Aug 2018 23:52:45 -0400 |
parents | 34eb999e29bf |
children | acd23830bcd6 |
files | mercurial/cext/revlog.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;