Changeset 7be14db in mainline


Ignore:
Timestamp:
2011-08-14T07:09:20Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f7d90eb
Parents:
998a78f
Message:

exFAT: make BPS, SPC and BPC values unsigned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat.h

    r998a78f r7be14db  
    5050#define BS_SIZE                 512
    5151
    52 #define BPS(bs)                 (1 << (bs->bytes_per_sector))
    53 #define SPC(bs)                 (1 << (bs->sec_per_cluster))
     52#define BPS(bs)                 ((uint32_t) (1 << (bs->bytes_per_sector)))
     53#define SPC(bs)                 ((uint32_t)(1 << (bs->sec_per_cluster)))
     54#define BPC(bs)                 ((uint32_t)(BPS(bs)*SPC(bs)))
    5455#define VOL_FS(bs)              uint64_t_le2host(bs->volume_start)
    5556#define VOL_CNT(bs)             uint64_t_le2host(bs->volume_count)
Note: See TracChangeset for help on using the changeset viewer.