WinRT core compatibility fixes
Update system.cpp Update system.cpp Update ocl.cpp Update matching.cpp Update ocl.cpp Update matching.cpp
This commit is contained in:
@@ -525,7 +525,9 @@ int addNullableBorder(CvLSVMFeatureMap *map, int bx, int by)
|
||||
float *new_map;
|
||||
sizeX = map->sizeX + 2 * bx;
|
||||
sizeY = map->sizeY + 2 * by;
|
||||
new_map = (float *)malloc(sizeof(float) * sizeX * sizeY * map->numFeatures);
|
||||
// fix for Windows Phone 8 ARM compiler
|
||||
size_t size = sizeof(float) * sizeX * sizeY * map->numFeatures;
|
||||
new_map = (float *)malloc(size);
|
||||
for (i = 0; i < sizeX * sizeY * map->numFeatures; i++)
|
||||
{
|
||||
new_map[i] = 0.0;
|
||||
|
Reference in New Issue
Block a user