mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Allocate memory in Visual Studio friendly way
This commit is contained in:
parent
9372aa4e48
commit
7d6050bd3b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user