diff --git a/CGAL_ImageIO/include/CGAL/Image_3_vtk_interface.h b/CGAL_ImageIO/include/CGAL/Image_3_vtk_interface.h index 2a4737432ae..dd88ed8e93d 100644 --- a/CGAL_ImageIO/include/CGAL/Image_3_vtk_interface.h +++ b/CGAL_ImageIO/include/CGAL/Image_3_vtk_interface.h @@ -109,12 +109,12 @@ struct VTK_type_generator { data_array = array; ); - vtk_image->SetDimensions(image.xdim(), - image.ydim(), - image.zdim()); - vtk_image->SetExtent(0, image.xdim()-1, - 0, image.ydim()-1, - 0, image.zdim()-1); + vtk_image->SetDimensions((int)image.xdim(), + (int)image.ydim(), + (int)image.zdim()); + vtk_image->SetExtent(0, (int)(image.xdim() - 1), + 0, (int)(image.ydim() - 1), + 0, (int)(image.zdim() - 1)); vtk_image->SetSpacing(image.vx(), image.vy(), image.vz());