lib/fold: fix warning with -DDEBUG