Changeset a32a86e in rtems


Ignore:
Timestamp:
10/10/11 02:12:46 (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
87f4e9ba
Parents:
1f25c77
Message:

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

  • libchip/network/sonic.c: Don't cast pointers to uint32_t.
Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r1f25c77 ra32a86e  
     12011-10-10      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libchip/network/sonic.c: Don't cast pointers to uint32_t.
     4
    152011-10-09      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/libchip/network/sonic.c

    r1f25c77 ra32a86e  
    117117 * Macros for manipulating 32-bit pointers as 16-bit fragments
    118118 */
    119 #define LSW(p)   ((uint16_t)((uint32_t)(p)))
    120 #define MSW(p)   ((uint16_t)((uint32_t)(p) >> 16))
     119#define LSW(p)   ((uint16_t)((uintptr_t)(p)))
     120#define MSW(p)   ((uint16_t)((uintptr_t)(p) >> 16))
    121121#define PTR(m,l) ((void*)(((uint16_t)(m)<<16)|(uint16_t)(l)))
    122122
Note: See TracChangeset for help on using the changeset viewer.