Changeset 8973acd in buchla-68k for libcio/lseek.c
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/lseek.c
r7d0d347 r8973acd 45 45 46 46 case 1: /* relative to current position */ 47 pos += fp->offset + ( fp->curlsn << FILESHFT);47 pos += fp->offset + ((int32_t)fp->curlsn << FILESHFT); 48 48 49 49 case 0: /* relative to start of file */ … … 72 72 73 73 fp->offset = fp->curlen & (BPSEC -1); 74 fp->curlsn = fp->curlen >> FILESHFT;74 fp->curlsn = (int16_t)(fp->curlen >> FILESHFT); 75 75 fp->modefl |= FC_ERR; 76 76 … … 86 86 87 87 fp->offset = pos & ((int32_t)BPSEC - 1); /* calculate sector offset */ 88 fp->curlsn = pos >> FILESHFT;/* calculate logical sector */88 fp->curlsn = (int16_t)(pos >> FILESHFT); /* calculate logical sector */ 89 89 90 90 if (_seek(fp) < 0) { /* position to the physical sector */
Note:
See TracChangeset
for help on using the changeset viewer.