Merge pull request #871 from lovell/cplusplus-vimage8h-static-cast

Make size_t to int cast explicit to prevent compiler warning
This commit is contained in:
John Cupitt 2018-02-04 09:52:06 +00:00 committed by GitHub
commit 8753cdfc61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ public:
VipsImage *image;
if( !(image = vips_image_new_from_image( this->get_image(),
&pixel[0], pixel.size() )) )
&pixel[0], static_cast<int>( pixel.size() ) )) )
throw( VError() );
return( VImage( image ) );