Allocate memory in Visual Studio friendly way

This commit is contained in:
Robin Stuart 2016-02-23 19:33:21 +00:00
parent 9372aa4e48
commit 7d6050bd3b

View file

@ -1307,8 +1307,13 @@ void applyOptimisation(int version, char inputMode[], int inputLength) {
}
}
#ifndef _MSC_VER
int blockLength[blockCount];
char blockMode[blockCount];
#else
int* blockLength = (int *) _alloca(blockCount * sizeof (int));
int* blockMode = (int *) _alloca(blockMode * sizeof(int));
#endif
j = -1;
currentMode = ' '; // Null