}
data_bytes= xx;
pad= (data_bytes & 1U) ? true : false;
- data_bytes-= 8U;
+ data_bytes-= 8U; /* discount the offset and block size fields */
/* offset */
if(!read_big_endian_uint32(infile, &xx, false, encoder_session.inbasefilename))
/* do 1<<30 bytes at a time, since 1<<30 is a nice round number, and */
/* is guaranteed to be less than LONG_MAX */
- for(; remaining>0U; remaining-= remaining>(1U<<30) ? remaining : (1U<<30))
+ while(remaining>0U)
{
unsigned long skip= (unsigned long)(remaining % (1U<<30));
}
skip-= need;
}
+
+ remaining-= skip;
}
}
/* do 1<<30 bytes at a time, since 1<<30 is a nice round number, and */
/* is guaranteed to be less than LONG_MAX */
- for(; remaining>0U; remaining-= remaining>(1U<<30) ? remaining : (1U<<30))
+ while(remaining>0U)
{
unsigned long skip= (unsigned long)(remaining % (1U<<30));
}
skip-= need;
}
+
+ remaining-= skip;
}
}