diff -Naur cfitsio/imcompress.c cfitsio.new/imcompress.c --- cfitsio/imcompress.c 2013-11-22 21:37:42.000000000 +0100 +++ cfitsio.new/imcompress.c 2017-10-02 14:59:15.109929047 +0200 @@ -6315,7 +6315,7 @@ */ if ((infptr->Fptr)->compress_type == HCOMPRESS_1) { - if (*status == NUM_OVERFLOW) *status = 0; + if ((*status == NUM_OVERFLOW) || (*status == OVERFLOW_ERR)) *status = 0; } } else if (tiledatatype == TSHORT)