size_t is unsigned, change to ssize_t to handle errors from tight_compress_data()