mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-28 14:25:59 +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];
|
int blockLength[blockCount];
|
||||||
char blockMode[blockCount];
|
char blockMode[blockCount];
|
||||||
|
#else
|
||||||
|
int* blockLength = (int *) _alloca(blockCount * sizeof (int));
|
||||||
|
int* blockMode = (int *) _alloca(blockMode * sizeof(int));
|
||||||
|
#endif
|
||||||
|
|
||||||
j = -1;
|
j = -1;
|
||||||
currentMode = ' '; // Null
|
currentMode = ' '; // Null
|
||||||
|
|||||||
Reference in New Issue
Block a user