(I'm away from the VM I would normally use to test such things before pushing, apologies for the churn)
#include <stdio.h>
+#include <cstdlib> // EXIT_FAILURE
#ifdef _WIN32
#include <windows.h>
uint8_t *d = (uint8_t *) b->data;
size_t newLength = b->length * 2;
int16_t *buf = (int16_t *) malloc(newLength);
- size_t i;
if (buf == NULL)
throw sg_exception("malloc failed decoing ULaw WAV file");
- for (i = 0; i < b->length; i++) {
+ for (ALsizei i = 0; i < b->length; i++) {
buf[i] = mulaw2linear(d[i]);
}