Fix a [-Wconversion] warning

This commit is contained in:
Laurent Rineau 2018-12-11 10:30:58 +01:00
parent e9065aeaba
commit cbd4d97998
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ unsigned int ImageIO_limit_len(size_t to_be_read)
CGAL_INLINE_FUNCTION CGAL_INLINE_FUNCTION
size_t ImageIO_write(const _image *im, const void *buf, size_t len) { size_t ImageIO_write(const _image *im, const void *buf, size_t len) {
size_t to_be_written = len; size_t to_be_written = len;
int l = -1; std::ptrdiff_t l = -1;
char *b = (char*)buf; char *b = (char*)buf;
switch(im->openMode) { switch(im->openMode) {