Fixed a conversion problem with the nbytes parameter for compress_ptr()