// we decided to do preview, now compute its size
- Must(wantedSize >= 0);
-
// cannot preview more than we can backup
size_t ad = min(wantedSize, TheBackupLimit);
void Adaptation::Icap::VirginBodyAct::progress(size_t size)
{
Must(active());
- Must(size >= 0);
+ Must(static_cast<int64_t>(size) >= 0);
theStart += static_cast<int64_t>(size);
}
void Adaptation::Icap::Preview::enable(size_t anAd)
{
// TODO: check for anAd not exceeding preview size limit
- Must(anAd >= 0);
Must(!enabled());
theAd = anAd;
theState = stWriting;