subbitbuf += x >> (USHRT_BIT - bitcount);
x <<= bitcount;
if (compsize < origsize) {
- if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
+ if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
/* fileerror(WTERR, outfile); */
fatal_error("Write error in crcio.c(putcode)\n");
/* exit(errno); */
subbitbuf += x >> (USHRT_BIT - bitcount);
x <<= bitcount;
if (compsize < origsize) {
- if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
+ if (fwrite(&subbitbuf, 1, 1, outfile) == 0) {
/* fileerror(WTERR, outfile); */
fatal_error("Write error in crcio.c(putbits)\n");
/* exit(errno); */
/* ------------------------------------------------------------------------ */
static void
encode_c_dyn(c)
- int c;
+ unsigned int c;
{
unsigned int bits;
int p, d, cnt;
/* ------------------------------------------------------------------------ */
void
output_dyn(code, pos)
- int code;
+ unsigned int code;
unsigned int pos;
{
encode_c_dyn(code);
{
putcode(7, 0);
}
+
/* Local Variables: */
-/* tab-width : 4 */
+/* mode:c */
+/* tab-width:4 */
/* End: */