[buddy] Fix several PVS-Studio warnings

For #192.

* src/bddio.c, src/cppext.cxx, src/kernel.c: Fix printf formats, calls
to new, and simplify one check in bdd_delref_nc().
This commit is contained in:
Alexandre Duret-Lutz 2016-10-28 17:12:21 +02:00
parent 41b47966b0
commit 63818a3e69
3 changed files with 12 additions and 11 deletions

View file

@ -130,7 +130,7 @@ void bdd_fprintall(FILE *ofile)
{
if (LOW(n) != -1)
{
fprintf(ofile, "[%5d - %2d] ", n, bddnodes[n].refcou);
fprintf(ofile, "[%5d - %2u] ", n, bddnodes[n].refcou);
if (filehandler)
filehandler(ofile, bddlevel2var[LEVEL(n)]);
else