src/data/data-out.c: Added assertion to catch negative values