mirror of https://github.com/CGAL/cgal
prefer std::size_t
This commit is contained in:
parent
256c87d986
commit
3527e8e8d0
|
|
@ -1242,7 +1242,7 @@ static void _swapImageData( _image *im )
|
||||||
Swap bytes depending on the endianness and the current architecture */
|
Swap bytes depending on the endianness and the current architecture */
|
||||||
CGAL_INLINE_FUNCTION
|
CGAL_INLINE_FUNCTION
|
||||||
int _readImageData(_image *im) {
|
int _readImageData(_image *im) {
|
||||||
size_t size, nread;
|
std::size_t size, nread;
|
||||||
|
|
||||||
if(im->openMode != OM_CLOSE) {
|
if(im->openMode != OM_CLOSE) {
|
||||||
size = im->xdim * im->ydim * im->zdim * im->vdim * im->wdim;
|
size = im->xdim * im->ydim * im->zdim * im->vdim * im->wdim;
|
||||||
|
|
@ -1279,7 +1279,7 @@ int _readImageData(_image *im) {
|
||||||
Swap bytes depending on the endianness and the current architecture. */
|
Swap bytes depending on the endianness and the current architecture. */
|
||||||
CGAL_INLINE_FUNCTION
|
CGAL_INLINE_FUNCTION
|
||||||
int _readNonInterlacedImageData(_image *im) {
|
int _readNonInterlacedImageData(_image *im) {
|
||||||
size_t size, nread;
|
std::size_t size, nread;
|
||||||
unsigned char **vp, *buf;
|
unsigned char **vp, *buf;
|
||||||
unsigned int i, j, k, v, w;
|
unsigned int i, j, k, v, w;
|
||||||
|
|
||||||
|
|
@ -1356,7 +1356,7 @@ int _readNonInterlacedImageData(_image *im) {
|
||||||
been read by _readImageHeader. The image buffer is interlaced. */
|
been read by _readImageHeader. The image buffer is interlaced. */
|
||||||
CGAL_INLINE_FUNCTION
|
CGAL_INLINE_FUNCTION
|
||||||
int _readNonInterlacedFileData(_image *im) {
|
int _readNonInterlacedFileData(_image *im) {
|
||||||
size_t size, nread;
|
std::size_t size, nread;
|
||||||
unsigned char *ptr1, *vp, *buf;
|
unsigned char *ptr1, *vp, *buf;
|
||||||
unsigned int i, j, k, v, w;
|
unsigned int i, j, k, v, w;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue