Prevent compiler warning with size_t to int cast
This commit is contained in:
parent
799b1e4910
commit
cea15b2d8f
@ -474,7 +474,7 @@ public:
|
|||||||
VipsImage *image;
|
VipsImage *image;
|
||||||
|
|
||||||
if( !(image = vips_image_new_from_image( this->get_image(),
|
if( !(image = vips_image_new_from_image( this->get_image(),
|
||||||
&pixel[0], pixel.size() )) )
|
&pixel[0], static_cast<int>( pixel.size() ) )) )
|
||||||
throw( VError() );
|
throw( VError() );
|
||||||
|
|
||||||
return( VImage( image ) );
|
return( VImage( image ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user