Merge pull request #1619 from kleisauke/compiler-warnings
Fix two compiler warnings
This commit is contained in:
commit
a5680abbd6
@ -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; \
|
||||
} \
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user