make array parameter const
This commit is contained in:
@@ -71,7 +71,7 @@ void uc_bv_set_all(struct UCBitVec *v);
|
|||||||
* int a[] = {0,1,1,1,0};
|
* int a[] = {0,1,1,1,0};
|
||||||
* set_bits_from_array(v,a,5);
|
* set_bits_from_array(v,a,5);
|
||||||
* */
|
* */
|
||||||
void uc_bv_set_bits_from_array(struct UCBitVec *v,char *array,size_t array_len);
|
void uc_bv_set_bits_from_array(struct UCBitVec *v,const char *array,size_t array_len);
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ void uc_bv_set_bit(struct UCBitVec *v,int b)
|
|||||||
v->vec[bit_index(b)] |= 1UL << (bit_offset(b));
|
v->vec[bit_index(b)] |= 1UL << (bit_offset(b));
|
||||||
}
|
}
|
||||||
|
|
||||||
void uc_bv_set_bits_from_array(struct UCBitVec *v,char *array,size_t array_len)
|
void uc_bv_set_bits_from_array(struct UCBitVec *v,const char *array,size_t array_len)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user