Changeset 24 for trunk


Ignore:
Timestamp:
Jun 19, 2017, 11:19:06 AM (8 years ago)
Author:
max@…
Message:

Use intptr_t instead.

Location:
trunk/kernel/libk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/list.h

    r14 r24  
    4242
    4343#ifndef OFFSETOF
    44 #define OFFSETOF( type , member ) ((unsigned int) & ((type *)0)->member)
     44#define OFFSETOF( type , member ) ((intptr_t) & ((type *)0)->member)
    4545#endif
    4646
  • trunk/kernel/libk/xlist.h

    r14 r24  
    5454
    5555#ifndef OFFSETOF
    56 #define OFFSETOF( type , member ) ((unsigned int) & ((type *)0)->member)
     56#define OFFSETOF( type , member ) ((intptr_t) & ((type *)0)->member)
    5757#endif
    5858
Note: See TracChangeset for help on using the changeset viewer.