File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1895,12 +1895,13 @@ heap_ip_to_gvalue( PElement *in, GValue *out )
18951895 */
18961896 else if ( heap_is_imagevec ( in , & result ) &&
18971897 result ) {
1898- Imageinfo * iivec [100 ];
1898+ Imageinfo * iivec [MAX_VEC ];
18991899 VipsImage * * ivec ;
19001900 int n ;
19011901 int i ;
19021902
1903- if ( (n = heap_get_imagevec ( in , iivec , 100 )) < 0 )
1903+ if ( (n = heap_get_imagevec ( in ,
1904+ iivec , MAX_VEC )) < 0 )
19041905 return ( FALSE );
19051906 g_value_init ( out , VIPS_TYPE_ARRAY_IMAGE );
19061907 vips_value_set_array_image ( out , n );
@@ -1916,10 +1917,11 @@ heap_ip_to_gvalue( PElement *in, GValue *out )
19161917 }
19171918 else if ( heap_is_realvec ( in , & result ) &&
19181919 result ) {
1919- double realvec [100 ];
1920+ double realvec [MAX_VEC ];
19201921 int n ;
19211922
1922- if ( (n = heap_get_realvec ( in , realvec , 100 )) < 0 )
1923+ if ( (n = heap_get_realvec ( in ,
1924+ realvec , MAX_VEC )) < 0 )
19231925 return ( FALSE );
19241926 g_value_init ( out , VIPS_TYPE_ARRAY_DOUBLE );
19251927 vips_value_set_array_double ( out , realvec , n );
You can’t perform that action at this time.
0 commit comments