diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-12 15:28:03 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-12 15:28:03 +0000 |
commit | eb55e007ab21221822b20c814257ce9ca94b7f74 (patch) | |
tree | 420abcbcd6de1a2260526fef6c68522a9b7d78de /cpukit/score | |
parent | 2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-eb55e007ab21221822b20c814257ce9ca94b7f74.tar.bz2 |
2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/system.h: Let RTEMS_offsetof return uintptr_t
instead of uint32_t (16bit target compatibility).
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/include/rtems/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/system.h b/cpukit/score/include/rtems/system.h index 0993f1e632..9243e32305 100644 --- a/cpukit/score/include/rtems/system.h +++ b/cpukit/score/include/rtems/system.h @@ -189,7 +189,7 @@ typedef void * proc_ptr; * This macro is used to obtain the offset of a field in a structure. */ #define RTEMS_offsetof(type, field) \ - ((uint32_t) &(((type *) 0)->field)) + ((uintptr_t) &(((type *) 0)->field)) /** * The following is the extern for the RTEMS version string. |