@@ -635,21 +635,21 @@ m_boolean* boolean_array_element_addr(const boolean_array_t* source,int ndims,..
635635 * k is one based
636636 */
637637void cat_boolean_array (int k , boolean_array_t * dest , int n ,
638- boolean_array_t * first ,...)
638+ const boolean_array_t * first ,...)
639639{
640640 va_list ap ;
641641 int i , j , r , c ;
642642 int n_sub = 1 , n_super = 1 ;
643643 int new_k_dim_size = 0 ;
644- boolean_array_t * * elts = (boolean_array_t * * )malloc (sizeof (boolean_array_t * ) * n );
644+ const boolean_array_t * * elts = (const boolean_array_t * * )malloc (sizeof (boolean_array_t * ) * n );
645645
646646 assert (elts );
647647 /* collect all array ptrs to simplify traversal.*/
648648 va_start (ap , first );
649649 elts [0 ] = first ;
650650
651651 for (i = 1 ; i < n ; i ++ ) {
652- elts [i ] = va_arg (ap ,boolean_array_t * );
652+ elts [i ] = va_arg (ap ,const boolean_array_t * );
653653 }
654654 va_end (ap );
655655
@@ -697,21 +697,21 @@ void cat_boolean_array(int k, boolean_array_t* dest, int n,
697697 * k is one based
698698 */
699699void cat_alloc_boolean_array (int k , boolean_array_t * dest , int n ,
700- boolean_array_t * first ,...)
700+ const boolean_array_t * first ,...)
701701{
702702 va_list ap ;
703703 int i , j , r , c ;
704704 int n_sub = 1 , n_super = 1 ;
705705 int new_k_dim_size = 0 ;
706- boolean_array_t * * elts = (boolean_array_t * * )malloc (sizeof (boolean_array_t * ) * n );
706+ const boolean_array_t * * elts = (const boolean_array_t * * )malloc (sizeof (boolean_array_t * ) * n );
707707
708708 assert (elts );
709709 /* collect all array ptrs to simplify traversal.*/
710710 va_start (ap , first );
711711 elts [0 ] = first ;
712712
713713 for (i = 1 ; i < n ; i ++ ) {
714- elts [i ] = va_arg (ap ,boolean_array_t * );
714+ elts [i ] = va_arg (ap ,const boolean_array_t * );
715715 }
716716 va_end (ap );
717717
0 commit comments