fix build for VS2019

This commit is contained in:
Angel Sánchez 2019-11-13 12:37:22 +01:00
parent cb7bc24b2a
commit da8ae29abe
2 changed files with 3 additions and 2 deletions

View File

@ -44,6 +44,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vips/vips.h>

View File

@ -74,8 +74,8 @@ vips_switch_gen( VipsRegion *or, void *seq, void *a, void *b,
if( vips_reorder_prepare_many( or->im, ar, r ) )
return( -1 );
g_assert( ar->im->BandFmt == VIPS_FORMAT_UCHAR );
g_assert( ar->im->Bands == 1 );
g_assert( (*ar)->im->BandFmt == VIPS_FORMAT_UCHAR );
g_assert( (*ar)->im->Bands == 1 );
for( i = 0; i < swit->n; i++ ) {
p[i] = VIPS_REGION_ADDR( ar[i], r->left, r->top );