Fix VS x64 compile (nw)

This commit is contained in:
Miodrag Milanovic 2015-09-13 12:17:50 +02:00
parent c9bde5341d
commit 954e900b78

View File

@ -376,7 +376,7 @@ pstr_t *pstring_t<F>::salloc(int n)
stk = palloc_array(pstack_t<pstr_t *>, 17);
pstr_t *p;
unsigned sn= ((32 - countleadbits(n)) + 1) / 2;
unsigned size = sizeof(pstr_t) + (1<<(sn * 2)) + 1;
unsigned size = sizeof(pstr_t) + (1ULL<<(sn * 2)) + 1;
if (stk[sn].empty())
p = (pstr_t *) palloc_array(char, size);
else