Prevent compiler warning with size_t to int cast

This commit is contained in:
Lovell Fuller 2018-02-03 18:05:07 +00:00
parent 799b1e4910
commit cea15b2d8f

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 ) );