From: Thadeu Lima de Souza Cascardo Date: Tue, 6 Mar 2018 20:14:45 +0000 (-0300) Subject: Não imprime soma de zero a total X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fdeclara.git;a=commitdiff_plain;h=957b1e655056bbb1e35df5d14ac6cbb395fbfb02 Não imprime soma de zero a total --- diff --git a/lib/totais.c b/lib/totais.c index 5d32d33..b9f0aa1 100644 --- a/lib/totais.c +++ b/lib/totais.c @@ -40,7 +40,7 @@ int totais_add(struct declaracao *dec, char *key, long long val) goto out_hash; *p = 0; } - if (dec->verbose) { + if (dec->verbose && val) { printf("Somando "FMT_R" a %s: "FMT_R" -> "FMT_R"\n", R(val), key, R(*p), R(*p + val)); }