Applied rounding fixes to non-C compress() method.