diff options
author | Chris Robinson <[email protected]> | 2018-01-27 11:50:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-27 14:34:05 -0800 |
commit | c4a76af3978715315603bd967ac688509b074775 (patch) | |
tree | 656543cd28335aa7a3e12fb00aa68aa73c924408 /OpenAL32/alBuffer.c | |
parent | f76ab02bd4fc13d6648d839374da966ef12201fd (diff) |
Add some casts to pacify MSVC
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 1464ef74..a8ad855f 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -1252,15 +1252,15 @@ static ALbuffer *AllocBuffer(ALCcontext *context) if(UNLIKELY(!buffer)) { const BufferSubList empty_sublist = { 0, NULL }; - lidx = VECTOR_SIZE(device->BufferList); /* Don't allocate so many list entries that the 32-bit ID could * overflow... */ - if(UNLIKELY(lidx >= 1<<25)) + if(UNLIKELY(VECTOR_SIZE(device->BufferList) >= 1<<25)) { almtx_unlock(&device->BufferLock); return NULL; } + lidx = (ALsizei)VECTOR_SIZE(device->BufferList); VECTOR_PUSH_BACK(device->BufferList, empty_sublist); sublist = &VECTOR_BACK(device->BufferList); sublist->FreeMask = ~U64(0); |