mirror of
https://git.code.sf.net/p/zint/code
synced 2024-09-19 15:28:56 -04:00
Allocate memory in Visual Studio friendly way
This commit is contained in:
parent
9372aa4e48
commit
7d6050bd3b
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue