Changeset fb5785cc in rtems


Ignore:
Timestamp:
Oct 22, 2009, 11:56:01 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
3144f90c
Parents:
4b8a90e
Message:

2009-10-22 Ralf Corsépius <ralf.corsepius@…>

  • libblock/include/rtems/flashdisk.h: Use UINT32_C consts to avoid implicit int-cast overflows in RTEMS_FDISK_KBYTES.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r4b8a90e rfb5785cc  
     12009-10-22      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libblock/include/rtems/flashdisk.h: Use UINT32_C consts to
     4        avoid implicit int-cast overflows in RTEMS_FDISK_KBYTES.
     5
    162009-10-22      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • cpukit/libblock/include/rtems/flashdisk.h

    r4b8a90e rfb5785cc  
    9696 * Return the number of kilo-bytes.
    9797 */
    98 #define RTEMS_FDISK_KBYTES(_k) ((_k) * 1024)
     98#define RTEMS_FDISK_KBYTES(_k) (UINT32_C(1024) * (_k))
    9999
    100100/**
Note: See TracChangeset for help on using the changeset viewer.