Skip to content

Commit 54116bb

Browse files
committed
void* arithmetic (GCC extension) is not allowed in msvc
1 parent f115c44 commit 54116bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/raster3d/mask.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,12 @@ void Rast3d_mask_tile(RASTER3D_Map * map, int tileIndex, void *tile, int type)
306306
for (dy = y; dy < rows; dy++) {
307307
for (dx = x; dx < cols; dx++) {
308308
RASTER3D_MASKNUM(map, dx, dy, dz, tile, type);
309-
tile += length;
309+
tile = (int*)tile + length;
310310
}
311311

312-
tile += xLength;
312+
tile = (int*) + xLength;
313313
}
314-
tile += yLength;
314+
tile = (int*) + yLength;
315315
}
316316
}
317317

0 commit comments

Comments
 (0)