error-typo-20031119

confusion of == and =
This commit is contained in:
Joe Buehler 2003-11-19 21:43:29 +00:00 committed by Jim Rees
parent b737d56f29
commit d08f4a716f

View File

@ -1636,7 +1636,7 @@ file_Seek(info, position)
w = USD_SEEK(p->fid, startOff, SEEK_SET, &stopOff); w = USD_SEEK(p->fid, startOff, SEEK_SET, &stopOff);
if (w) if (w)
info->error == w; info->error = w;
if (hcmp(startOff, stopOff) != 0) if (hcmp(startOff, stopOff) != 0)
ERROR_EXIT(BUTM_POSITION); ERROR_EXIT(BUTM_POSITION);
@ -1687,10 +1687,10 @@ file_SeekEODump(info, position)
p = (struct progress *)info->tmRock; p = (struct progress *)info->tmRock;
hset64(startOff, 0, 0); hset64(startOff, 0, 0);
w = USD_SEEK(p->fid, startOff, SEEK_END, &stopOff); w = USD_SEEK(p->fid, startOff, SEEK_END, &stopOff);
if (w) if (w) {
info->error == w; info->error = w;
if (w)
ERROR_EXIT(BUTM_POSITION); ERROR_EXIT(BUTM_POSITION);
}
if (hgetlo(stopOff) % BUTM_BLOCKSIZE) if (hgetlo(stopOff) % BUTM_BLOCKSIZE)
ERROR_EXIT(BUTM_POSITION); ERROR_EXIT(BUTM_POSITION);