mirror of
https://github.com/holub/mame
synced 2025-07-02 16:49:22 +03:00
Fix VS x64 compile (nw)
This commit is contained in:
parent
c9bde5341d
commit
954e900b78
@ -376,7 +376,7 @@ pstr_t *pstring_t<F>::salloc(int n)
|
|||||||
stk = palloc_array(pstack_t<pstr_t *>, 17);
|
stk = palloc_array(pstack_t<pstr_t *>, 17);
|
||||||
pstr_t *p;
|
pstr_t *p;
|
||||||
unsigned sn= ((32 - countleadbits(n)) + 1) / 2;
|
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())
|
if (stk[sn].empty())
|
||||||
p = (pstr_t *) palloc_array(char, size);
|
p = (pstr_t *) palloc_array(char, size);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user