comparison mercurial/cext/revlog.c @ 39073: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
comparison
equal deleted inserted replaced
39072:34eb999e29bf 39073:beab6690f202
1533 if (seen == NULL) { 1533 if (seen == NULL) {
1534 PyErr_NoMemory(); 1534 PyErr_NoMemory();
1535 goto bail; 1535 goto bail;
1536 } 1536 }
1537 1537
1538 interesting = calloc(sizeof(*interesting), 1 << revcount); 1538 interesting = calloc(sizeof(*interesting), ((size_t)1) << revcount);
1539 if (interesting == NULL) { 1539 if (interesting == NULL) {
1540 PyErr_NoMemory(); 1540 PyErr_NoMemory();
1541 goto bail; 1541 goto bail;
1542 } 1542 }
1543 1543