From 4ad268aadc5de9f998c8b1cee07c6fe88fbe4650 Mon Sep 17 00:00:00 2001 From: "richarda.tyarks" <richard-andre.tyarks@etu.hesge.ch> Date: Thu, 2 Dec 2021 19:17:57 +0100 Subject: [PATCH] remove warning message --- stack.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/stack.c b/stack.c index a483a6e..0555575 100644 --- a/stack.c +++ b/stack.c @@ -18,11 +18,6 @@ void stack_destroy(stack *s) { void stack_push(stack *s, int value) { - if (s->top == s->capacity-1) - { - assert(s->data = realloc(s->capacity * 2 * sizeof(int)) && "Error : realloc failed"); - } - s->top++; s->data[s->top] = value; } -- GitLab