From 50db131865325b5ed2344d47bd2520678b31286d Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 9 Jan 2016 20:27:14 +0000 Subject: [PATCH] VImage::get_typeof() returns GType it was int, causing some compiler warnings on some platforms. see https://github.com/jcupitt/libvips/issues/362 --- ChangeLog | 1 + cplusplus/include/vips/VImage8.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bb35e878..bbaf9000 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ - small doc improvements - small vips7 C++ improvement - remove exception specifications from vips8 C++ interface +- VImage::get_typeof() now returns GType 7/10/15 started 8.2.0 - added im_bufmagick2vips(), a vips7 wrapper for magick load from buffer diff --git a/cplusplus/include/vips/VImage8.h b/cplusplus/include/vips/VImage8.h index 1d61717d..5b539b20 100644 --- a/cplusplus/include/vips/VImage8.h +++ b/cplusplus/include/vips/VImage8.h @@ -357,7 +357,7 @@ public: free_fn, data, length ); } - int + GType get_typeof( const char *field ) { return( vips_image_get_typeof( this->get_image(), field ) );