/* Truncate size of the array to @num_elements if less than the current size. No memory is actually freed. The stored objects beyond @num_elements are simply "forgotten".  */
void _cairo_array_truncate(cairo_array_t *array, unsigned int num_elements)
/* Truncate size of the array to @num_elements if less than the current size. No memory is actually freed. The stored objects beyond @num_elements are simply "forgotten".  */
void _cairo_array_truncate(cairo_array_t *array, unsigned int num_elements)
{
    if (num_elements < array->num_elements)
	array->num_elements = num_elements;
}