From cea15b2d8fbcf1166ef96f5e353d6ad5f6feafaf Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 3 Feb 2018 18:05:07 +0000 Subject: [PATCH] Prevent compiler warning with size_t to int cast --- cplusplus/include/vips/VImage8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cplusplus/include/vips/VImage8.h b/cplusplus/include/vips/VImage8.h index 578504cc..cae7df63 100644 --- a/cplusplus/include/vips/VImage8.h +++ b/cplusplus/include/vips/VImage8.h @@ -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( pixel.size() ) )) ) throw( VError() ); return( VImage( image ) );