fix build for VS2019
This commit is contained in:
parent
cb7bc24b2a
commit
da8ae29abe
@ -44,6 +44,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <vips/vips.h>
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user