mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-10 13:36:02 +00:00
Allocate memory in Visual Studio friendly way
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user