From cb0e116d08f38da66deef9d431956cfa948ee624 Mon Sep 17 00:00:00 2001 From: Peter Petrek Date: Fri, 3 Dec 2021 01:00:33 +0100 Subject: [PATCH] fix2 --- a4/program.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/a4/program.c b/a4/program.c index 6204615..58d4e4b 100644 --- a/a4/program.c +++ b/a4/program.c @@ -82,7 +82,10 @@ void vypisovac(int vypis[SIZE], int input[SIZE], int size){ else{ count = ownPow(2,size-i-1)/2; counter = 0; - space--; + if (space > 1) + { + space--; + } } }