Changeset 80f7c54 in mainline for uspace/app/tmon/burst_tests.c


Ignore:
Timestamp:
2018-01-27T14:37:17Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf0398c
Parents:
77733a9
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-27 14:37:07)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-27 14:37:17)
Message:

usb: make the code compile on 32-bit architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/burst_tests.c

    r77733a9 r80f7c54  
    128128/** Static array of units with decreasing factors. */
    129129static const tmon_unit_t units[] = {
    130         { .prefix = 'E', .factor = 1ul << 60 },
    131         { .prefix = 'P', .factor = 1ul << 50 },
    132         { .prefix = 'T', .factor = 1ul << 40 },
    133         { .prefix = 'G', .factor = 1ul << 30 },
    134         { .prefix = 'M', .factor = 1ul << 20 },
    135         { .prefix = 'k', .factor = 1ul << 10 }
     130        { .prefix = 'E', .factor = ((uint64_t) 1) << 60 },
     131        { .prefix = 'P', .factor = ((uint64_t) 1) << 50 },
     132        { .prefix = 'T', .factor = ((uint64_t) 1) << 40 },
     133        { .prefix = 'G', .factor = ((uint64_t) 1) << 30 },
     134        { .prefix = 'M', .factor = ((uint64_t) 1) << 20 },
     135        { .prefix = 'k', .factor = ((uint64_t) 1) << 10 }
    136136};
    137137
Note: See TracChangeset for help on using the changeset viewer.