Changeset 8973acd in buchla-68k for libcio/lseek.c


Ignore:
Timestamp:
07/15/2017 03:12:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ea232f9
Parents:
7d0d347
Message:

No more warnings in libcio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/lseek.c

    r7d0d347 r8973acd  
    4545
    4646        case 1:                         /* relative to current position */
    47                 pos += fp->offset + (fp->curlsn << FILESHFT);
     47                pos += fp->offset + ((int32_t)fp->curlsn << FILESHFT);
    4848
    4949        case 0:                         /* relative to start of file */
     
    7272
    7373                fp->offset = fp->curlen & (BPSEC -1);
    74                 fp->curlsn = fp->curlen >> FILESHFT;
     74                fp->curlsn = (int16_t)(fp->curlen >> FILESHFT);
    7575                fp->modefl |= FC_ERR;
    7676
     
    8686
    8787        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 */
    8989
    9090        if (_seek(fp) < 0) {                    /* position to the physical sector */
Note: See TracChangeset for help on using the changeset viewer.