Merge pull request #1619 from kleisauke/compiler-warnings

Fix two compiler warnings
This commit is contained in:
John Cupitt 2020-05-01 11:30:41 +01:00 committed by GitHub
commit a5680abbd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ G_DEFINE_TYPE( VipsCast, vips_cast, VIPS_TYPE_CONVERSION );
OTYPE * restrict q = (OTYPE *) out; \
\
for( x = 0; x < sz; x++ ) \
q[x] = CAST( p[x] ); \
q[x] = p[x]; \
}
/* Cast complex types to an int type. Just take the real part.
@ -232,7 +232,7 @@ G_DEFINE_TYPE( VipsCast, vips_cast, VIPS_TYPE_CONVERSION );
OTYPE * restrict q = (OTYPE *) out; \
\
for( x = 0; x < sz; x++ ) { \
q[x] = CAST( p[0] ); \
q[x] = p[0]; \
p += 2; \
} \
}

View File

@ -957,7 +957,7 @@ vips_foreign_load_heif_init( VipsForeignLoadHeif *heif )
/* The first version to support heif_reader.
*/
heif->reader->reader_api_version = 1.3;
heif->reader->reader_api_version = 1;
heif->reader->get_position = vips_foreign_load_heif_get_position;
heif->reader->read = vips_foreign_load_heif_read;
heif->reader->seek = vips_foreign_load_heif_seek;