Some compilation fixes that only showed up in the MSVC build
This commit is contained in:
@@ -201,10 +201,10 @@ void opl2_update(int nr, int16_t *buffer, int samples)
|
|||||||
pclog("opl2_update: possible stack overflow detected. sample count was %d", samples);
|
pclog("opl2_update: possible stack overflow detected. sample count was %d", samples);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sizeof(Bit32s) * samples) > buffer_sz) {
|
if ((sizeof(Bit32s) * samples) > buffer_sz) {
|
||||||
if (buffer_32 != NULL)
|
if (buffer_32 != NULL)
|
||||||
free(buffer_32);
|
free(buffer_32);
|
||||||
buffer_sz = sizeof(Bit32s) * samples);
|
buffer_sz = sizeof(Bit32s) * samples;
|
||||||
buffer_32 = (Bit32s *)malloc(buffer_sz);
|
buffer_32 = (Bit32s *)malloc(buffer_sz);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@@ -231,10 +231,10 @@ void opl3_update(int nr, int16_t *buffer, int samples)
|
|||||||
pclog("opl2_update: possible stack overflow detected. sample count was %d", samples);
|
pclog("opl2_update: possible stack overflow detected. sample count was %d", samples);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sizeof(Bit32s) * samples * 2) > buffer_sz) {
|
if ((sizeof(Bit32s) * samples * 2) > buffer_sz) {
|
||||||
if (buffer_32 != NULL)
|
if (buffer_32 != NULL)
|
||||||
free(buffer_32);
|
free(buffer_32);
|
||||||
buffer_sz = sizeof(Bit32s) * samples * 2);
|
buffer_sz = sizeof(Bit32s) * samples * 2;
|
||||||
buffer_32 = (Bit32s *)malloc(buffer_sz);
|
buffer_32 = (Bit32s *)malloc(buffer_sz);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user