/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/12 08:57:22 by ljiriste #+# #+# */
-/* Updated: 2024/01/17 13:12:34 by ljiriste ### ########.fr */
+/* Updated: 2024/05/06 20:54:19 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
else if (mat->rows != vec->size)
return (invalid_input);
set_auxiliary_vars(mat, index, &cols_change, &move_index);
- while ((mat->cols + cols_change) * mat->rows < mat->vec.capacity)
+ while ((mat->cols + cols_change) * mat->rows > mat->vec.capacity)
{
res = ft_vec_enlarge(&(mat->vec));
if (res != success)